How To Run A Net Command On A Specific Entity?
Im trying to run this
The WriteFloat is the state of the cocaine lab(1-6 are the allowed states)
Pretty much what i'm trying to do is bypass stages 1-5, the code runs smooth with no errors but it doesn't change anything? Im thinking its because its not sure what to target. What could I put instead of (self) to target the specific cocainelab? Ive already tried getting the entity ID of the coke lab and doing it but it gave me an error(Pretty sure it was something like expected number but got string).
Code:
net.Start("CocainLab")
net.WriteEntity(self)
net.WriteFloat("6")
net.SendToServer()
Pretty much what i'm trying to do is bypass stages 1-5, the code runs smooth with no errors but it doesn't change anything? Im thinking its because its not sure what to target. What could I put instead of (self) to target the specific cocainelab? Ive already tried getting the entity ID of the coke lab and doing it but it gave me an error(Pretty sure it was something like expected number but got string).