Gallagher Posted November 28, 2013 Share Posted November 28, 2013 (edited) Hello is possible to change the color of the flare? the light emitted by it is white like it to be blue, it is possible? bindKey("mouse1","down", function ( ) local vehicle = getPedOccupiedVehicle ( localPlayer ) if ( vehicle ) and ( getElementModel( vehicle ) == 411 ) and ( getElementData(localPlayer,'shot') == false ) then local x, y, z = getElementPosition( vehicle ) [color=#BF0000] createProjectile(vehicle,19,x,y,z,500)[/color] setElementData(localPlayer,'shot',true) setTimer( setElementData, 2000, 1, localPlayer, 'shot', false ) end end ) addEventHandler('onClientResourceStart', resourceRoot, function() if getElementData(localPlayer,'shot') == true then setElementData(localPlayer,'shot',false) end end ) Edited November 30, 2013 by Guest Link to comment
Woovie Posted November 29, 2013 Share Posted November 29, 2013 None of this code contains any color code. Post the entire script. Link to comment
TAPL Posted November 29, 2013 Share Posted November 29, 2013 Same idea. https://forum.multitheftauto.com/viewtopic.php?f=91&t=66517 Link to comment
Gallagher Posted November 29, 2013 Author Share Posted November 29, 2013 TAPL said: Same idea.https://forum.multitheftauto.com/viewtopic.php?f=91&t=66517 and how would I do that all the players have rockets of the same color? would have some sort of: setProjectilColor? Link to comment
TAPL Posted November 29, 2013 Share Posted November 29, 2013 You don't need the server side, only client. At client side line 19: if getElementData(creator, "VIPRocket") and getProjectileType(source) == 19 then Change it to: if getProjectileType(source) == 19 then Link to comment
Gallagher Posted November 29, 2013 Author Share Posted November 29, 2013 TAPL said: You don't need the server side, only client.At client side line 19: if getElementData(creator, "VIPRocket") and getProjectileType(source) == 19 then Change it to: if getProjectileType(source) == 19 then ok , Thanks Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now