JeweL Posted July 26, 2020 Share Posted July 26, 2020 I have any problem.. Zombies doesnt spawn... function zombieSpawning() local x, y, z = getElementPosition(getLocalPlayer()) local material, hitX, hitY, hitZ = isObjectAroundPlayer2(getLocalPlayer(), 30, 3) if material == 0 and not isInBuilding(x, y, z) then triggerServerEvent("createZomieForPlayer", getLocalPlayer(), hitX, hitY, hitZ) end end setTimer(zombieSpawning, 3000, 0) Link to comment
Sisqo0 Posted July 26, 2020 Share Posted July 26, 2020 (edited) there is nothing wrong here so those can be the reason :- 3 hours ago, JeweL said: isObjectAroundPlayer2 or 3 hours ago, JeweL said: isInBuilding or maybe this event in server side 3 hours ago, JeweL said: "createZomieForPlayer" Edited July 26, 2020 by Sisqo0 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