Jump to content

xPawlo

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

xPawlo's Achievements

Vic

Vic (3/54)

0

Reputation

  1. I repaired it. I changed "onPlayerWasted" to "onPlayerSpawn". Thanks guys
  2. Still not working. Console says "attempt to call global 'isPlayerInTeam' (a nil value)"
  3. When I change to server side, the console says "attempt to call global 'getLocalPlayer' (a nil value)".
  4. In console i didn't see any errors, it says that resource started succesfully
  5. Why this is not working? function poliwasted() local player = getLocalPlayer() local team = getTeamFromName("Milicja") if isPlayerInTeam(player, team) then setElementModel ( player, 281 ) setPedArmor ( player, 100 ) setPlayerNametagColor ( player, 0, 8, 255 ) giveWeapon( player, 3, 1000 ) end end addEventHandler("onPlayerWasted", getRootElement(), poliwasted) <meta> <info author="xPawlo" version="0.1" type="script" name="frakcje" description="" /> <script src="frakcjeclient.lua" type="client" /> </meta>
×
×
  • Create New...