-- Server Side
local groupName = 'Group'
addEventHandler ( "onPlayerSpawn", root,
function()
if ( getElementData(source, "isPlayerJailed")) then return end
if getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'Criminals' and getElementData ( source , "Group" ) == groupName then
function sp( source )
setPedStat ( source, 24, 1000 )
setElementDimension( source, 0 )
setElementPosition( source, 241.30241394043,1028.7094726563,1084.0078125 )
setElementInterior( source, 7 )
setPedArmor ( source, 100)
setPedFightingStyle ( source, 7)
setElementHealth (source,200)
setPedStat (source, 24, 1000)
end
setTimer(sp,1000,1,source)
end
end)