Jump to content
  • 0

can you explane


abdalbaset

Question

Posted

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

3 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
Posted

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

  • 0
Posted
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?

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