fsdfdsf Posted February 6, 2015 Share Posted February 6, 2015 (edited) fixed thanks you Edited February 6, 2015 by Guest Link to comment
AfuSensi Posted February 6, 2015 Share 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. Link to comment
xeon17 Posted February 6, 2015 Share 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 Link to comment
TAPL Posted February 6, 2015 Share Posted February 6, 2015 @XeoN, you shouldn't make loop at event onPlayerSpawn, use source instead. Link to comment
xeon17 Posted February 6, 2015 Share 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. Link to comment
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