Jump to page content
English English   Polish Polish   Dutch Dutch   Russian Russian   German German   Hungarian Hungarian   Norwegian Norwegian   Swedish Swedish   Finnish Finnish   Romanian Romanian   Spanish Spanish   Portuguese Portuguese   Latvian Latvian  
Homepage
Home
Register
Login

Resources
Forum
Wiki
Servers

rssNeon (neon)

Category:script
Author(s):weirdo
Downloads:12493
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.
...

(more)

Download latest version | Report

Version history

Version Publish Date Changes
1.2.0 2011-03-05 16:09:41 added a GUI Download
1.1.0 2011-03-05 01:37:13 Added glowing effect Download
1.0.0 2011-03-03 23:39:47 First public release Download