EQUIPAR CON ARMAS - OFICINA DE POLICIAS



Este script consiste en que equipara con armas en la estacion policial de San Fierro.

Autor: Kost, Nikita0324, editby Fastrix

local pickup = createPickup(-1602, 674, -5, 3, 1310)

addEventHandler('onClientPickupHit', pickup, function(player)

     if player == localPlayer then 

local accName = getAccountName(account)

if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Police" ) ) then

     outputChatBox('Te dieron un arma!', 255,0,0, false)

    triggerServerEvent("pickup", resourceRoot, localPlayer)

    end

end

end)

Si desea verficiar Elementdata agregue:
local pickup = createPickup(-1602, 674, -5, 3, 1310)

addEventHandler('onClientPickupHit', pickup, function(player)

if getElementData(player, 'Police') == true then

     if player == localPlayer then 

    --triggerServerEvent("pickup", resourceRoot, localPlayer)

     outputChatBox('Te dieron un arma!', 255,0,0, false)

    triggerServerEvent("pickup", resourceRoot, localPlayer)

end

    end

end)



No hay comentarios:

Publicar un comentario