Jump to content

johhnhd

Members
  • Posts

    45
  • Joined

  • Last visited

Everything posted by johhnhd

  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
  15. Can't test it cause before I add a line before that when they shot it made them do a anim now i deleted the line they still do it how can i make them shoot normally
  16. cheers and is there a way to force a reload after every shot?
  17. setWeaponProperty(23, "pro", "maximum_clip_ammo", 1) setWeaponProperty(23, "std", "maximum_clip_ammo", 1) setWeaponProperty(23, "poor", "maximum_clip_ammo", 1) added that get this problem
  18. so i could throw this into my police script setWeaponClipAmmo ( 23, 1 ) or setWeaponClipAmmo ( Silenced Pistol, 1 )
  19. I am trying to make a taser script so when you shoot with the silenced pistol you reload after every shot i made this but it didn't work im really stuck function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if weapon == 23 then reloadPedWeapon ( thePed ) end end
  20. wow i am dumb think it now haha cheers pal
  21. http://gyazo.com/3bf2749d357638ae828c9d2921addb3d.png I have looked all through the files and I can not find it and it says line 281 this is line 281 of the client side local skinID = spawninfo['skins'][tonumber(guiGetText(skinNumberLabel))]
  22. done just added something to the server side script and removed bottom line
  23. I need some help with a spawn menu it wont show up when a user joins the game and logs in here is some of the script client addEventHandler ( 'onPlayerLogin', true) addEventHandler ( 'onPlayerLogin', getRootElement(), checkPlayerAlive) addEventHandler("onClientPlayerWasted", getLocalPlayer(), drawWastedSelection)
  24. okay i have a login. it has client and server files. but it doesnt show up when you login can someone help me or tell me what to add into the scripts
×
×
  • Create New...