stevensalvaro
Members-
Posts
135 -
Joined
-
Last visited
Everything posted by stevensalvaro
-
Hello, I got some little bug , when the vehicle get item id 137 it's fine , but when i take item id 137 , then why set element data not set to idModel[0] , i just use 'else' , may i use function ' elseif not' ? local theVehicle = getPedOccupiedVehicle ( localPlayer ) if (exports.global:hasItem(theVehicle, 137)) then setElementData( localPlayer, "neon", idModel[1] ) elseif (exports.global:hasItem(theVehicle, 138)) then setElementData( localPlayer, "neon", idModel[2] ) else setElementData( localPlayer, "neon", idModel[0] ) end
-
okay thanks bro , i will try it
-
the script is fine , but if i restart the script outside the vehicle , then i enter the vehicle , nothing happend .. But if i restart the script inside the vehicle , it's work fine .. may i need to use getElementModel(theVehicle) ? I dont know if getVehicleModel will work on MTA , because it's SAMP function
-
so if i want to make it work with get / set element data , i must to write : client addEventHandler("onPlayerLogin", root, function() bindKey(source, "n", "down", factionVehicle) end) addEventHandler("onResourceStart", root, function() for p, v in ipairs(getElementsByType("player")) do bindKey(v, "n", "down", factionVehicle) end end) function factionVehicle(thePlayer, theVehicle) getElementData (theVehicle, "test") triggerServerEvent ("test1", getLocalPlayer(), theVehicle) end end
-
Hello, I want to make when vehicle has item id 1 then setelementdata "test" 1 , and when player enter vehicle and press 'N' then item ID 1 work. What function i need ? am i right about : When vehicle has item id 1 ----- "setElementData function" When Player enter vehicle ----- "getElementData function" When press N ---- Trigger the event ?
-
you must create font first using guiCreateFont
-
actually a lots of script is replacing neon , not a function to attach it , what i need to get help is , How can i get vehicle model ID and why this script doesnt work if i use addcommandHandler when entering vehicle without restart it , but if i restart this script in the vehicle , i can use that Command ..
-
Yeah , item id on vehicle trunk
-
awesome ,, wasting time again haha ,, thanks bro ...
-
Why people still using px , py , it's "guiGetScreenSize()" on the script .. , it's will automaticlly get screen size
-
Hello, I Just downloaded GTA V Texture for Los Santos , It's containt all texture of los santos textured . It's possible to make it automaticlly replace GTA SA Texture from this mods , or i must to replace it one by one ?
-
actually not , you mus have VPS or do Port Forwarding to make your server show in public
-
thank you so much @Dimos7
-
Hello, How to make script for car 2 seat or more, So people can't enter as passengers on seat 2 , seat 3 , or seat 4 ? What function i must to use to reject them from entering that car ?
-
how if you play mta ? laggy ? or just laggy when opening the gui ?
-
it's OWL right ?
-
Show your script
-
If you want gui / dx fit to the screen , Just use your guiGetScreenSize , Example: local width,height = guiGetScreenSize() guiCreateStaticImage(0,0,width,height,"[File_Path]",false) It's will make the gui fit to the screen
-
Hello, How to make a gui that can be slide to the right or left like on phone ?
-
yes , you can attach sound with function playsound3D to your vehicle and get vehicle velocity for the volume.
-
use setTimer function and set Z pos +0.5 to make it go up
