لا غلط
function createJob ( name, x, y, z, rz )
if ( name == 'Terrorists' ) then
create3DText ( 'Terrorists', { x, y, z }, { 255, 0, 0 }, { nil, true } )
local p = createElement ( "GodmodePed" )
setElementData ( p, "Model", 109 )
setElementData ( p, "Position", { x, y, z, rz } )
createBlip ( x, y, z, 59, 2, 255, 255, 255, 255, 0, 450 )
addEventHandler ( 'onMarkerHit', createMarker ( x, y, z - 1, 'cylinder', 2, 0, 0, 0, 0 ), function ( p )
if ( getElementType ( p ) == 'player' and not isPedInVehicle ( p ) and not isPedDead ( p ) and getElementData(p, "YourDataName") == "YourValueName" ) then
if ( getPlayerWantedLevel ( p ) > max_wanted.Terrorists ) then
return exports['SaeedMessages']:sendClientMessage ( "The max wanted level for this job is "..tostring ( max_wanted.Terrorists )..".", p, 255, 0, 0 )
end
triggerClientEvent ( p, 'SaeedJobs:OpenJobMenu', p, 'Terrorists' )
end
end )