Jump to content

Dayz xmass event


konrad22222

Recommended Posts

 

It's not that easy because everything you say must be done in gamemode because the weapons must match the zombie script etc etc...

-- Spawn a zombie at a random location on the map
local x, y, z = math.random(-8000, 8000), math.random(-8000, 8000), 0
local zombie = createPed(28, x, y, z)

-- Make the zombie drop a Christmas box when it dies
addEventHandler("onPedWasted", zombie, function()
    local box = createObject(1225, x, y, z)
    -- You can add code here to make the box contain skins or other items
end)

Keep in mind that this code is just an example and may need to be modified to fit your specific needs. 

 

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