-
Posts
4,961 -
Joined
-
Last visited
Everything posted by Jaysds1
-
No problem
-
You don't have to start runcode actually... You could just type in "showchat" in the console. And if you join your server after starting it and the chat is not showing except in the console then there's a script that's disabling it.
-
Yea anywhere, as long as it's in a script ending with '.lua'
-
Use this: addEventHandler("onPlayerSpawn",root,function() fadeCamera(source,true) end)
-
Yea, I keep missing simple information like that... local gates = { car1gate1 = createObject(971, 0, 0, 5), car1gate2 = createObject(971, 0, 0, 5), car2gate1 = createObject(971, 0, 0, 5), car2gate2 = createObject(971, 0, 0, 5) } function addspatula (player) local vehicle = getPedOccupiedVehicle(player) if not vehicle then return outputChatBox("You need to be in a vehicle!",player) end local spatula = getElementData(player,"spatula") or false if spatula == false then attachElements( gates.car1gate1, vehicle, 0.4, 6.2, -0.6, 90, 90, 90 ) attachElements( gates.car1gate2, vehicle, 0.4, 13.2, -0.6, 90, 90, 90 ) addVehicleUpgrade ( vehicle, 1087 ) addVehicleUpgrade ( vehicle, 1087 ) else detachElements( gates.car1gate1, vehicle) detachElements( gates.car1gate2, vehicle) end spatula = not spatula setElementData(player,"spatula",spatula) end addCommandHandler("spatula", addspatula)
-
I've edited the code again, Should've read the code properly instead of skimming it... It should work now!
-
What Module/SDK is this for? MTA-MySQL? MySQL?
-
Fixed it up for you: function cabi(player) if isPedInVehicle( player ) then if getElementType ( player ) == "player" then local vehicle = getPedOccupiedVehicle ( player ) if vehicle then local driver = getVehicleController ( vehicle ) Controller = setTimer(takePlayerMoney, 2000, 0, player, 1) Passageiro = setTimer(givePlayerMoney, 2000, 0, driver, 1) end end end end addEventHandler("onVehicleStartEnter",getRootElement(),cabi)
-
Here try this: local gates = { car1gate1 = createObject(971, 0, 0, 5), car1gate2 = createObject(971, 0, 0, 5), car2gate1 = createObject(971, 0, 0, 5), car2gate2 = createObject(971, 0, 0, 5) } function addspatula (player) local vehicle = getPedOccupiedVehicle(player) if not vehicle then return outputChatBox("You need to be in a vehicle!",player) end local spatula = getElementData(player,"spatula") or false if spatula == false then attachElements( gates.car1gate1, vehicle, 0.4, 6.2, -0.6, 90, 90, 90 ) attachElements( gates.car1gate2, vehicle, 0.4, 13.2, -0.6, 90, 90, 90 ) addVehicleUpgrade ( vehicle, 1087 ) addVehicleUpgrade ( vehicle, 1087 ) else removeElements( gates.car1gate1, vehicle, 0.4, 6.2, -0.6, 90, 90, 90 ) removeElements( gates.car1gate2, vehicle, 0.4, 13.2, -0.6, 90, 90, 90 ) end spatula = not spatula setElementData(player,"spatula",spatula) end addCommandHandler("spatula", addspatula) Basically, you forgot to change the variable value. I put comments in there for you
-
Yes, it's possible to pass arguments through functions but you can't pass them through an event handler.
-
You would need to use these functions to calculate the font size: dxGetTextWidth --Width dxGetFontHeight --Height
-
try this: local lol = { lal = function() outputChatBox("remove event from table ") end } addEventHandler("onClientRender", root,lol.lal) setTimer( function() removeEventHandler("onClientRender", root,lol.lal) end ,1000,1)
-
Hmm, Well I thought it was a good idea. I guess there's no animation for it then.
-
I know there's an animation for it but I can't seem to find it. Try using the setPedChoking on yourself and then use getPedAnimation to get the animation data.
-
Nice, great to see MTA still being updated!
-
There's no resource that deletes it automatically. If you're running Freeroam then I think that it gets remove after a certain time or after a player spawns 2-3 cars.
-
So you want to give max stats for every player?
-
Are you talking about the parachute?
-
Try this: http://portforward.com/english/routers/ ... t_Auto.htm
-
This happens when a computers IP changes which happens either when the computer restarts or when the modem/router restarts. The main thing you would need to do is remove your ip in the mtaserver.conf file that you filled in before restarting your computer. After you remove that restart/start your server. Let me know if there's any error messages.
-
Try searching the MTA Community site: https://community.multitheftauto.com/
-
We don't give free scripts here, and you should learn how to script. Try finding the script in the MTA Community site: https://community.multitheftauto.com/