Jump to content

HELP ANYONE!!!


s1mple

Recommended Posts

local avaible_skin = { [280]=true } 
  
function blahblah(thePlayer,_,id) 
    if ( avaible_skin[tonumber(id)] ) then 
        setElementData(thePlayer, "normalSkin",getElementModel(thePlayer)) 
        setElementModel(thePlayer,id); 
        return true; 
    end 
    return false; 
end 
addCommandHandler("duty",blahblah) 
  
function offduty(thePlayer) 
setElementModel(thePlayer,getElementData(thePlayer,"normalSkin")) 
end 
addCommandHandler("offduty",offduty) 

can anypne make me like, if i write duty then i get weapon id 22, 334 and skin 280, and if i write offduty then he teake my weapons and skin? PELASE HELP :( and add this too please!!!

        for i,v in ipairs(getElementsByType("ped")) do 
            if tonumber(getElementData(player, "factions.player")) == tonumber(getElementData(v, "factions.id")) then 
                if exports.brpExports:getFactionType(v) == "law" then 

Link to comment
  
  
function blahblah(thePlayer) 
        setElementData(thePlayer, "normalSkin",getElementModel(thePlayer)) 
        setElementModel(thePlayer,280) 
        giveWeapon(thePlayer,22,100) 
        giveWeapon(thePlayer,3,1) 
end 
addCommandHandler("duty",blahblah) 
  
function offduty(thePlayer) 
setElementModel(thePlayer,getElementData(thePlayer,"normalSkin")) 
takeWeapon(thePlayer,22) 
takeWeapon(thePlayer,3) 
end 
addCommandHandler("offduty",offduty) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...