Jump to content
  • 0

can you explane


abdalbaset

Question

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

3 answers to this question

Recommended Posts

  • 0

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...