Jump to content

Jaysds1

Members
  • Posts

    4,961
  • Joined

  • Last visited

Everything posted by Jaysds1

  1. 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.
  2. Yea anywhere, as long as it's in a script ending with '.lua'
  3. Use this: addEventHandler("onPlayerSpawn",root,function() fadeCamera(source,true) end)
  4. It's probably a script problem as this forum is outdated and I'm guessing their PHP and MySQL is updated... Not sure as I'm not an admin.
  5. Jaysds1

    MySql

    I'm guessing the news in your forum is saved in MySQL, so you would need to use these functions: https://wiki.multitheftauto.com/wiki/Se ... _functions dbConnect dbExec dbQuery dbPoll dbFree
  6. 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)
  7. I've edited the code again, Should've read the code properly instead of skimming it... It should work now!
  8. What Module/SDK is this for? MTA-MySQL? MySQL?
  9. 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)
  10. 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
  11. Yes, it's possible to pass arguments through functions but you can't pass them through an event handler.
  12. You would need to use these functions to calculate the font size: dxGetTextWidth --Width dxGetFontHeight --Height
  13. 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)
  14. Hmm, Well I thought it was a good idea. I guess there's no animation for it then.
  15. 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.
  16. Nice, great to see MTA still being updated!
  17. 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.
  18. Jaysds1

    Skills

    So you want to give max stats for every player?
  19. Jaysds1

    Backpack Help!

    Are you talking about the parachute?
  20. Jaysds1

    Port trigger

    Try this: http://portforward.com/english/routers/ ... t_Auto.htm
  21. 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.
  22. Jaysds1

    Help Me Please

    Try searching the MTA Community site: https://community.multitheftauto.com/
  23. Jaysds1

    Script

    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/
×
×
  • Create New...