Nussmann Posted April 21, 2021 Share Posted April 21, 2021 Hello, i read every tutorial i can found in the the internet and did everything according to them. I downloaded a Mod from GTa 5 mods.com and encrypted it via ArchiveFx after that i put the data in a new rpf archive that is called dlc. i also encrypted that. NOw i put this new dlc.rpf in /ragemp/server-files/game_resources/dlcpacks in a folder that is called like the vehicle hash in the xml data of the mod. Now if i start the server i see that the client side weight has increased but i cannot spawn the car via /veh ... my command looks like this: public void CMD_veh(Player player, string vehName) { { VehicleHash vehHash = NAPI.Util.VehicleNameToModel(vehName); if(vehHash == 0) { player.SendChatMessage("Ungültiger Vehicle Name!"); return; } Vehicle veh = NAPI.Vehicle.CreateVehicle(vehHash, player.Position, player.Rotation, 5, 5); player.SetIntoVehicle(veh, 0); player.SendNotification("Fahrzeug gespawnt!"); } i have defenitely now ide left what i am doing wrong. Maybe someone here can help me tho. Link to comment Share on other sites More sharing options...
Xabi Posted April 21, 2021 Share Posted April 21, 2021 VehicleNameToModel takes GTAV vehicles, won't work with modded ones. You have to use GetHashKey to get the vehicle hash. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now