Jump to content

johhnhd

Members
  • Posts

    45
  • Joined

  • Last visited

johhnhd's Achievements

Rat

Rat (9/54)

0

Reputation

  1. I dont get what you are getting at here
  2. function guiClick (button, state, absoluteX, absoluteY) if (source == spawnBut) then triggerServerEvent ("carSpawn", lp) guiSetVisible (theWindow, false) showCursor (false) elseif (source == destroyBut) then triggerServerEvent ("carDestroy", lp) guiSetVisible (theWindow, false) showCursor (false) elseif (source == closeBut) then guiSetVisible (theWindow, false) showCursor (false) end end addEventHandler ("onClientGUIClick", getRootElement(), guiClick) using that now but it doesn't get rid of cursor
  3. the mouse only goes at certain times and you have to reconnect to fix it
  4. function guiClick (button, state, absoluteX, absoluteY) if (source == spawnBut) then triggerServerEvent ("carSpawn", lp) elseif (source == destroyBut) then triggerServerEvent ("carDestroy", lp) elseif (source == closeBut) then guiSetVisible (theWindow, false) showCursor (false) end end addEventHandler ("onClientGUIClick", getRootElement(), guiClick)
  5. This didn't work as well
  6. Easiest thing to do with GUI but this has just got my head in a twist. function hide() destroyElement(theWindow) showCursor ( false ) end addEventHandler ( "onClientGUIClick", closeBut, hide, false ) It deletes the GUI but cursor still shows. TY in advanced
  7. yeah i hate to tell you i aint the best scripter so what functions may i need to use
  8. i dont know exactly we got it given to me. but we use lock="acl" to lock it to groups
  9. okay i am using castilos gang panel but i have a spawn system and i am looking to lock spawns to what group they are in the gang panel how would i go about doing so
  10. function removebeagle ( thePlayer, seat, jacked ) if ( getElementModel ( source ) == 511 ) then destroyElement ( source ) end end addEventHandler ( "onVehicleExit", getRootElement(), removebeagle )
  11. I have a pilot script but once they leave the plane it will respawn in the spawn point so when another pilot spawns one it spawns ontop of the old one. can someone point me in the direction. Im looking to make one so as soon as the pilot leaves the plane it gets deleted.
  12. Added a few lines to it to help
  13. my script local r , g , b = getTeamColor(spawnTeam) playerBlips[player] = createBlipAttachedTo(player, 0, 2, r, g, b) setBlipVisibleDistance ( theBlip, 200 ) error:
  14. it comes up with that error on this line help if (hitElement) and (getElementType(hitElement) == "player") and (weapon == 25) and (theWL > 0) then
×
×
  • Create New...