Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. You are sending the GUI button element as the player, remove 'source' from triggerServerEvent and doLockVehicle function name.
  2. Try this: if getElementData(player, "Classicon") and fileExists ( getElementData(player, "Classicon") ) then outputChatBox("I'm in !!") --It will flood your chatbox so remove it once you checked dxDrawImage ( sx - math.max(nameWidth/2, teamWidth/2) - imageSize - 1*scale, sy - imageSize, imageSize, imageSize, getElementData(player, "Classicon") ) dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 1*scale, sy - imageSize, imageSize, imageSize, getElementData(player, "Classicon") ) end If it doesn't work, then post the part where you set "Classicon" element data.
  3. If the player has element data and the file exists, then it'll spam the chat box with "I'm in".
  4. No, that'll make the same effect. You must trigger to the server side and then trigger back to the client side.
  5. Change 'root' to 'localPlayer' at addEventHandler.
  6. You forgot to define how much times the timer will repeat.
  7. If you want to play it when spawn, why do you put playSound outside the function?
  8. Ask Solidsnake14 ( Castillo ) I think he do such scripts like this for fair price. Else xXMADEXx may do it too. No, I don't make these kind of scripts.
  9. Add the resource to the "Admin" group in the ACL.xml.
  10. function connectMySQL ( ) if ( not db ) then db = mysql_connect ( db_host, db_login, db_pass, db_name, db_port ) if ( db ) then outputDebugString ( "Connected." ) triggerEvent ( "onMySQLConnected", root ) return db else outputDebugString ( "Unable to connect to the MySQL server" ) return false end else return db end end addEventHandler ( "onResourceStart", resourceRoot, connectMySQL )
  11. Same script as the one posted by mint3d, same IP. The server side script never triggers the client side events, there you got your problem.
  12. That server side script never triggers any client event. And yes, you are mint3d.
  13. The server side is the same leaked code from valhalla, mint3d?
  14. Castillo

    paynspray

    We don't give support with leaked scripts. Topic locked.
  15. Castillo

    paynspray

    Loading what exactly?
  16. That doesn't make any sense.
  17. Remove 'source' from function name, as it's already defined by it's own.
  18. Castillo

    Few questions

    1: You can, use the event onClientPlayerHitByWaterCannon with cancelEvent.
  19. Then, you must bind the key when the player joins ( onPlayerJoin ) and for every player when the resource starts ( onResourceStart ).
  20. Client side script? if so, then remove getLocalPlayer() from bindKey.
  21. Try it and see if it works.
  22. Are you sure that there are no errors? they won't show in the server console, they'll show on the debugscript ( ingame ).
×
×
  • Create New...