abdalbaset Posted August 4, 2013 Share Posted August 4, 2013 any one explan to me what i have to do with this code and where i have to put it (what file) marker = createMarker(x, y, z,"corona",2,0,255,0) addEventHandler("onClientMarkerHit",marker, function() local vh = getPedOccupiedVehicle ( source ) vehicles = { --[[YOUR ID'S HERE, SEPARATED BY A COMA (Ex: 1, 2, 3)]] } nm = tonumber ( math.random( #vehicles ) ) setElementModel ( vh, nm ) end) and sory if it was stupid question Link to comment
0 xTravax Posted August 4, 2013 Share Posted August 4, 2013 you need to make a folder and save that code to .lua file and you need to make meta.xml file which looks like this for example but it can be either client side either server sidež then all u need is to start that resource Link to comment
0 EstrategiaGTA Posted August 5, 2013 Share Posted August 5, 2013 You used the event 'onClientMarkerHit', so it's a client-side script. Well, create a folder in your MTA folder/server/mods/deathmatch/resources. And create a file named "myscript.lua", and your code there. Then, just create other file named "meta.xml" and write this code: For start the resource, go to your server and type "/start [the name of the folder]" (you must be Admin or SuperModerator). Link to comment
0 abdalbaset Posted August 5, 2013 Author Share Posted August 5, 2013 You used the event 'onClientMarkerHit', so it's a client-side script. Well, create a folder in your MTA folder/server/mods/deathmatch/resources. And create a file named "myscript.lua", and your code there. Then, just create other file named "meta.xml" and write this code: For start the resource, go to your server and type "/start [the name of the folder]" (you must be Admin or SuperModerator). i try it but wirirnig there(warning :not loding resource "myscript.lua" what i have to do? Link to comment
Question
abdalbaset
any one explan to me what i have to do with this code and where i have to put it (what file)
and sory if it was stupid question
Link to comment
3 answers to this question
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