Jump to content

[Help]Wanted Pickup


3B00DG4MER

Recommended Posts

Posted

Hello,Today i made all things

there is one thing,I made it when you pickup the model 1247 (Wanted Model) -1 Wanted level

Can you give me the code to create pickup with custom model (No mapeditor)

Posted
  
local pickup_positions = { 
    {0,0,0}, 
    {1,1,1} 
} 
  
for _,pos in ipairs (pickup_positions) do 
    local pickup = createPickup(pos[1],pos[2],pos[3],3,1247) 
    addEventHandler("onPickupHit",pickup,function(player) 
        setPlayerWantedLevel(player,getPlayerWantedLevel(player)+1) 
        destroyElement(source) 
        givePlayerMoney(player,100) 
    end) 
end 
  

Posted
  
local pickup_positions = { 
    {0,0,0}, 
    {1,1,1} 
} 
  
for _,pos in ipairs (pickup_positions) do 
    local pickup = createPickup(pos[1],pos[2],pos[3],3,1247) 
    addEventHandler("onPickupHit",pickup,function(player) 
        setPlayerWantedLevel(player,getPlayerWantedLevel(player)+1) 
        destroyElement(source) 
        givePlayerMoney(player,100) 
    end) 
end 
  

Thanks can you fix the new post

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...