• Need some help with "Cider" gamemode.
    1 replies, posted
So, I got this cider gamemode a few days ago, maybe you guys know which one it is. So, I started coding some stuff, and since I am a LUA noob, I came up with errors or I wasn't able to make some stuff at all. I need to know how to do a few stuff. How do I add a NPC to the map? Like the ones in PERP gamemode, where you can buy props, buy clothes, get jobs... I don't really know how to do that GUI thing, so I may need some help on that too. And I'll need coordinates, is there any way to get the player's x y and z ingame? How do I add cars? I managed to do that, but everyone can enter your car, you can't lock it, and also you can only have one car in the server, and if you spawn one, you have to rejoin to get another one. So a better question is, how do I make these cars work this way? How do I make this lock/unlock thing? How do I spawn a car, assign the entity ID (or whatever) to a global variable so I can later remove it when the player wants to spawn another car? Also, I want to make doors (unownable doors with a certain title) in which only players which a certain job can lock/unlock it (like the City Officials in PERP, and Cops and Mayor doors in DarkRP)? I almost managed to do that, but some errors came up. I need to know how to get the player job variable in the keys swep lua file. I tried player:Team(), player:Job(), player._Job, and some others, but these didn't work. Other than that it's working fine, I tried removing the code that checks the player job, and it worked (but everyone could lock/unlock this unownable door). I hope I can get some help here.
Sorry, you need to Log In to post a reply to this thread.