Jump to content

Yunix

Members
  • Posts

    35
  • Joined

  • Last visited

Everything posted by Yunix

  1. Doesn't work, every weapon is now allowed
  2. Doesn't work, it does not allow to scroll with any weapon
  3. Well, what i mean is when you have the valid weapon it doesn't allow you.
  4. Tried it, and it does not work. EDIT: It doesn't allow the scrolling even when scrolling to a allowed weapon.
  5. I made a function for checking the player's weapons when scrolling the weapon but it doesn't seem to work.. local guntable = { 23, 30, 32, 20, 9 } -- random id's function weaponDisable() weapon = getPedWeapon(localPlayer) if guntable[weapon] then else cancelEvent() end end addEventHandler ("onClientPlayerWeaponSwitch", getRootElement(), weaponDisable) Someone able to help me with this?
  6. Thanks, i searched the wiki for "weapon" but that one didn't came across.
  7. Is there a function that checks if the player is holding a gun? Or is there any other way to do so?
  8. Yunix

    Stop triggering

    Well, what's a better event for it then? It's for moving objects to a other dimension.
  9. So i have a function server side that is being triggered by an client sided function that's being started with the event "onClientRender". The problem is whenever i script in the server side and i make a mistake the server console spams that the server sided function is not there but that's because that script has an error and can not be started, so my question is, could the triggerServerEvent be stopped when it can't find the server sided function when it gets an error?
×
×
  • Create New...