local policeVehicles =
{
{597, -1594.15295, 674.24622, 7.18750, 92.063659667969},
}
function mashinPolice (thePlayer, seat, jacked)
if not getElementData (thePlayer, "faction") == Police and getElementModel(source) == "policeVehicles" then
cancelEvent()
outputChatBox ( "#ffff00your not in police department faction", player,255,255,255,true)
end
end
addEventHandler ( "onVehicleStartEnter", getRootElement(), mashinPolice )
this is my faction vehicle script, not working!
what is problem ?
I want to make only local policeVehicles available to getElementData Police!