Jump to content

fixed


fsdfdsf

Recommended Posts

Posted

I wonder if you read the warning message, since it tells you what's wrong pretty clear.

spawnPlayer argument 1 needs a player, and you gave it a resource.

source in "onResourceStart" is a resource, not a player.

Posted (edited)
addEventHandler ( "onResourceStart", resourceRoot, function () 
    for _, player in ipairs(getElementsByType("player")) do 
    spawnPlayer (player, 3242.27734375, -1901.7502441406, 24.918750762939) 
  end 
end) 
  
addEventHandler("onPlayerSpawn", getRootElement(), function () 
    giveWeapon(source, 31, 200) 
end) 
  

Edited by Guest

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