DiosSasuke Posted April 22, 2018 Share Posted April 22, 2018 Hola, alguien me podria decir que hice malo en este script soy nuevo en esto ? En la consola me aparece server.lua:2: Bad argument @ `getElementPosition` [Expected element at argument 1, got nil] y Tambien me aparece server.lua:3: Bad argument @ `createexplosion` [Expected vector3 at argument 1, got boolean] function explosionOnSpawn ( ) local pX, pY, pZ = getElementPosition(source) createExplosion ( pX, pY, pZ, 6, source ) end addEventHandler ( "onPlayerSpawn", getRootElement(), explosionOnSpawn ) addCommandHandler ( "sharingan", explosionOnSpawn ) Link to comment
JeViCo Posted April 22, 2018 Share Posted April 22, 2018 I guess you're in wrong language section buddy. Also paste code using this button next time: Your code works perfectly. Make sure you wrote meta.xml correct like this where sv.lua - your lua file with your code 1 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