fsdfdsf Posted February 6, 2015 Posted February 6, 2015 (edited) fixed thanks you Edited February 6, 2015 by Guest
AfuSensi Posted February 6, 2015 Posted February 6, 2015 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.
xeon17 Posted February 6, 2015 Posted February 6, 2015 (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 February 6, 2015 by Guest
TAPL Posted February 6, 2015 Posted February 6, 2015 @XeoN, you shouldn't make loop at event onPlayerSpawn, use source instead.
xeon17 Posted February 6, 2015 Posted February 6, 2015 @XeoN, you shouldn't make loop at event onPlayerSpawn, use source instead. True , i don't know what was with me today Fixed it.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now