Hello, so I have this code here
– Be a Zombie by IceGaming, v1
local zombie = {}
function zombie.tick()
playerID = PLAYER.PLAYER_ID()
playerPed = PLAYER.GET_PLAYER_PED(playerID)
if get_key_pressed(76) then
playerPed.SET_PLAYER_MODEL(player, GAMEPLAY.GET_HASH_KEY(u_m_y_zombie_01))
end
end
return zombie
and it says :
tick: scripts/addins/zombie.lua:11: attempt to index global ‘playerPed’ (a numbe
r value)
I read other articles and all of them said something about an object. I really need help so I can further what I would like to make. Please help, and thanks!
Also if you do know where and how to add/change/remove a code line to fix it, please tell me. Thanks!
