rssNeon (neon)
Category: | script |
---|---|
Author(s): | weirdo |
Downloads: | 12499 |
Rate: | You need to be logged in to vote |
Rating: | 3.4 (28 Votes) |
Description:
Draws neon light under vehicles
Read everything!
NOTE: If you don't add Neon to your vehicle you will not be able to change its color! Use the function 'addNeon' for that.
Example:
Execute the following script in the admin panel serverside:
Admin panel -> Resources -> Click "For advanced users only." -> Paste the following code -> Click "Server":
addEventHandler("onPlayerVehicleEnter",root,function(vehicle) exports.neon:addNeon(vehicle,true) end)
Enter your vehicle AFTER doing that.
exported functions:
server:
setNeonColor(element theVehicle, int red, int green, int blue)
Sets the Neon light color of a vehicle
haveNeon(element theVehicle)
Returns
true if the vehicle has Neon installed. False otherwise
addNeon(element theVehicle, bool state)
Add or remove Neon
canHaveNeon(element theVehicle)
Returns
true if it isn't a plane or another vehicle that shouldn't have Neon lights.
deactivateNeon(element theVehicle)
Will deactivate the vehicle's Neon but not remove it (initial state)
client:
wantNeon(bool state)
state: true if Neon should be drawn or false if it shouldn't. By default it is activated.
Default command:
/neon r g b
or
/neon #rrggbb
or
/neon (to open the GUI)
You can enter the color code in the format #rrggbb in the first GUI edit or enter the amount of every color from 0-255 in the three edits.
You can see this script in action at RRC:RPG.
Read everything!
NOTE: If you don't add Neon to your vehicle you will not be able to change its color! Use the function 'addNeon' for that.
Example:
Execute the following script in the admin panel serverside:
Admin panel -> Resources -> Click "For advanced users only." -> Paste the following code -> Click "Server":
addEventHandler("onPlayerVehicleEnter",root,function(vehicle) exports.neon:addNeon(vehicle,true) end)
Enter your vehicle AFTER doing that.
exported functions:
server:
setNeonColor(element theVehicle, int red, int green, int blue)
Sets the Neon light color of a vehicle
haveNeon(element theVehicle)
Returns
true if the vehicle has Neon installed. False otherwise
addNeon(element theVehicle, bool state)
Add or remove Neon
canHaveNeon(element theVehicle)
Returns
true if it isn't a plane or another vehicle that shouldn't have Neon lights.
deactivateNeon(element theVehicle)
Will deactivate the vehicle's Neon but not remove it (initial state)
client:
wantNeon(bool state)
state: true if Neon should be drawn or false if it shouldn't. By default it is activated.
Default command:
/neon r g b
or
/neon #rrggbb
or
/neon (to open the GUI)
You can enter the color code in the format #rrggbb in the first GUI edit or enter the amount of every color from 0-255 in the three edits.
You can see this script in action at RRC:RPG.