#How do i fix LocalPlayer() giving me nil value

1 messages · Page 1 of 1 (latest)

grim rose
#

[ERROR] lua/loadmap.lua:12: attempt to call global 'LocalPlayer' (a nil value)

  1. unknown - lua/loadmap.lua:12
#

this is my code

grim rose
vital wadi
grim rose
#

in console

vital wadi
grim rose
#

why client

vital wadi
#

LocalPlayer() is an clientsided function

grim rose
#

oh

vital wadi
#

You can't use it on serverside

grim rose
#

well im on single player so i thought it works

#

thanks now i know localplayer is a client sided

#

im kind of new to scripting im trying to start now to know some gmod coding

vital wadi