• Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About icarus

  • Rank
  1. lol, thanks works, i tryed this but only in "poor" mode maybe thats why it didnt work, thanks
  2. this time there is no Debugmessage and still not working
  3. still not working DEBUGSCRIPT MESSAGE: ERROR:\client.lua:3:attempt to call global 'setWeaponPropriety' (a nil value)
  4. still not working, omg, just a simple thing gives more work that a bunch of bigger things.
  5. yeah lol, this must be simplier, but still cant work with it ---clientside function tazerreload( startedRes ) setWeaponProperty ( 23, "maximum_clip_ammo", 1 ) end addEventHandler( "onClientResourceStart", getLocalPlayer( ),tazerreload)
  6. yeah lol, but still i changed that, in jay's version and my version, still doesnt work
  7. no, no errors, and still doesnt work, idk whats wrong with it.
  8. still doesnt work ps:u can use ---this insted of pastbin
  9. I made this but for idk why it doesnt work, it doesnt even output a debugscript message, can u help ? ---Clientside function reloadtazerclient () if getPedWeapon ( getLocalPlayer())== 23 then triggerServerEvent ("ontazershoot", getLocalPlayer()) end end addEventHandler ("onClientPedWeaponFire", getRootElement(), reloadtazerclient) ---Serverside addEvent ("ontazershoot", true) function tazershootserverside(sourcePlayer) reloadPedWeapon ( sourcePlayer ) end addEventHandler("ontazershoot", getRootElement(),tazershootserverside) (i already tryed "(source)" insted of "(sourcePlayer)", and "weapon == 23" insted of " getPedWeapon ( getLocalPlayer())== 23", and didnt work.
  10. sorry, probably some bug, i tryed many times earlier and didnt work, tryed just now and works, thanks anyway.
  11. I made this part, i already tryed "if", nbut didnt work, so i tryed "if not", still the same. this is part of the script ---serverside function checkBBHQspawn() if not isObjectInACLGroup( 'user.'..getAccountName( getPlayerAccount( source ) ), aclGetGroup( "Admin" ) ) then triggerClientEvent ("onnotHQverification", source) else setPlayerNametagColor ( source, 255, 140, 0 ) spawnPlayer ( source, 2392, 2792, 14, 180, 211, 0, 0, blackbulletsteam ) giveWeapon ( source, 31, 500) giveWeapon ( source, 27, 500) giveWeapon ( source, 24, 150) giveWeapon ( source, 34, 150) giveWeapon ( source, 46, 150) giveWeapon ( source, 16, 30) end end addEventHandler("onHQbbmembersbutton", getRootElement(),checkBBHQspawn) ---Clientside addEvent ("onnotHQverification", true) function ifnotBBHQ() outputChatBox ( "#FF0000You need to be HQ or Admin to spawn as HQ", 255, 255, 255, true ) end addEventHandler("onnotHQverification",getLocalPlayer(),ifnotBBHQ) I dont know whats the problem, it outputs the chatbox, but it still it lets the player spawn, can u help me on this ?
  12. thanks, it works , i have other question, if i wanted to match a random place how could i do it. Like in this function (attacker, gun) if getTeamName(getPlayerTeam(attacker)) == "Police" then -- if attacker was a cop if gun == 23 or gun == 3 then -- if it was a tazer or stick setElementPosition(source, -643.82635498047, 1945.7033691406, 2) setElementPosition(source, -1980, 4991, 39)-- set there position end end end ) i wanted to make it to warp it or to a place or to the other
  13. i was trying to make that when a player that is inside a colshape after a timer get warped to a place. I dont know whats wrong with this. function warpplayer ( thePlayer ) if isElementWithinColShape ( thePlayer, Bankcol ) then setElementPosition ( thePlayer, 2655, 2706, 411 ) end end Also tryed this, actually i tyed this first function warpplayer ( source ) if isElementWithinColShape ( source, Bankcol ) then setElementPosition ( source, 2655, 2706, 411 ) end The debugscript 3 message is always the same: Bad argument @ "isElementWithinColShape" [Expected element at argument 1] Can someone help me at this ?
  14. ive been trying all day, but i think it works now.