[C#] A few questions

Hello guys, I’m pretty new to the FiveM modding scene, and I have a few questions. First of all, is there any Ped or Vehicle class? Secondly, how do you check for keypress? Thirdly, if I were to create a script to spawn a vehicle whenever I press V, how would I do it?

I am not on my computer at home but I do believe the is a Ped and Vehicle class under the namespace CitizenFX.Core. To check for a keypress you would need to use Game.IsControlJustPressed(int type, int key) again under the previous namespace. To figure out the key you have to go to this topic: [need help] Keys Value List. For the key type just put in 1. That is normal gameplay where I think 27 is in a vehicle.

@BlockBa5her OK, thanks for your input. I do have one problem: I have no idea where my client is installed. When I downloaded FiveM IIRC it didn’t ask me where to install it… so can you please help where its installed by default?

It installed to wherever you ran the .exe at

@Briglair I ran it on my Desktop, is there a folder I’m supposed to be seeing or something?

never mind, figured it out.