-
Posts
4,961 -
Joined
-
Last visited
Everything posted by Jaysds1
-
I suggest using Notepad++, is that lua editor from MTA it self?
-
no, like this: local table = {{2851.87793, 1290.40491, 11.39063},{1433.50720, 2620.47266, 11.39261}} -- Una tabla con diferentes modelos de vehiculos. addEvent( "qd4", true ) addEventHandler( "qd4", root,function() local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) local x,y,z = unpack(table[math.random(#table)]) if name == "ElMota[Gold]~x" then setElementPosition ( source,x,y,z ) else if ( money >= 10000 ) then takePlayerMoney ( source, 10000 ) setElementPosition ( source, x,y,z) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end)
-
try these: Resource:Mapcycler Resource:Mapmanager
-
You have addEventHandler("onResourceStart",Vehiculocrear) Which triggers nothing... EDIT: parameters = unpack(Table) in your case, you use: x,y,z = unpack(Table[math.random(#Table)]) try this: addEvent( "qd2", true ) addEventHandler( "qd2", root,function() local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "ElMota[Gold]~x" then setElementPosition( source, -1960.53528, 127.29656, 27.68750 ) else if ( money >= 10000 ) then takePlayerMoney ( source, 10000 ) setElementPosition( source, -1960.53528, 127.29656, 27.68750 ) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end) local table = {{2851.87793, 1290.40491, 11.39063},{1433.50720, 2620.47266, 11.39261}} -- Una tabla con diferentes modelos de vehiculos. addEvent( "qd4", true ) addEventHandler( "qd4", root,function() local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "ElMota[Gold]~x" then setElementPosition ( source, table[ math.random ( #table ) ] ) else if ( money >= 10000 ) then takePlayerMoney ( source, 10000 ) x,y,z = unpack(table[math.random(#table)]) setElementPosition ( source, x,y,z) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end) addEventHandler("onResourceStart",resourceRoot,Vehiculocrear) addEvent( "qd3", true ) addEventHandler( "qd3", root,function() local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "ElMota[Gold]~x" then setElementPosition( source, 1056.44568, -2724.47437, 8.48407 ) else if ( money >= 10000 ) then takePlayerMoney ( source, 10000 ) setElementPosition( source, 1056.44568, -2724.47437, 8.48407 ) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end)
-
Sorry, What lua editor are you using?
-
Did you guyz know it's about BriGhtX3, not about ElMota... BriGhtx3, check your script, it looks fine and karthik184 said he looked at it.
-
but you can call the logOut() when the player leaves/quits.
-
So, basically you want a garage spawner? but instead it shows the blip of where the car is?
-
try this: addEventHandler("onPlayerWasted",root,function() if not getAlivePlayers() then triggerEvent("onRoundFinished",resourceRoot) end end)
-
So, the next map starts when there's 2 players left??? It's either a script of the gamemode it's self.
-
Do you have any mods?
-
Suggestion for the community site
Jaysds1 replied to Deagle's topic in Site/Forum/Discord/Mantis/Wiki related
Where did you saw that? IRC -
Suggestion for the community site
Jaysds1 replied to Deagle's topic in Site/Forum/Discord/Mantis/Wiki related
nevermind***----------------------- -
I'll try making it and fixing your code tomorrow.
-
addEventHandler ( "onClientPlayerWeaponFire", localPlayer,function(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if (weapon == 41 and hitElement and getElementType(hitElement)=="vehicle") then if getElementHealth(hitElement) >= 1000 then return end setElementHealth(hitElement, getElementHealth(hitElement)+100) fixVehicle(hitElement) triggerServerEvent ( "givemoney", getLocalPlayer()) end end)
-
thanks, It works, Tell your friend to come on the forums and post their DXDiag.
-
Can you give me your server Ip, so I can try.
-
it still can't work? May I ask, What is this script for?
-
Sometimes servers can't connect to Game-Monitor... Can I have a screenshot of your openports please.
-
Did you try MTA without the mod?
-
srry, I'm looking at your code, and nothing triggers your music to start... Is this all your code? If so, what button do you want the music to start playing?
-
ya, it's coming from your GTA, When does this crash occur?
-
here: viewforum.php?f=105