local marker = createMarker ( 1545, -1669.6999511719, 12.60000038147, "cylinder", 1, 255, 255, 0, 165 )
function createTeamsOnStart ()
teamALSPD = createTeam ( "Los Santos Police Department", 0, 255, 0 )
end
addEventHandler("onResourceStart", resourceRoot, createTeamsOnStart)
function omh ( hS )
setPlayerTeam ( hS, teamALSPD )
giveWeapon( hs, id, ammo ) -- set id and ammo
giveWeapon( hs, id, ammo ) -- set id and ammo
end
addEventHandler("onMarkerHit", marker, omh)
you can get id from
https://wiki.multitheftauto.com/wiki/Weapon
Why giving weapon twice?