changing player model in gta4

Started by Collssdew, June 09, 2025, 08:03:09 PM

Previous topic - Next topic

Collssdew

i cant seem to get this native to work natives.changePlayerModel(int, int) i loaded and requested the model like i would in gta5 and i get the error Error: Error while calling the native, not sure if there is another way or not there is no info on it that i can seem to find

Vortrex

What are you using for the int,int arguments?

Collssdew

i tried everything really client, skin ids, etc.. i'm currently using the player.id and the model hash, i'm requesting it, checking if it's loaded etc like in fivem. i check on the wiki but it says nothing only: there is currently no text in this page lol.

johnxzar

Are you trying it server side? Natives only work client side. Another option would be spawnPlayer() at the current player position.

Collssdew

yeah i know natives only work on the client, and i tried the spawnPlayer on the server side it only crashes my game sadly. Did you try it on gta4? if so any idea how it works? seems many things don't work for gta4 even though the wiki says it does, i spent so many hours trying different things over and over because there is no clear documentation for most things on gta4, so i just gave up because bro takes 3 months to respond back to my question with a question instead of just telling me how it works

johnxzar

Yes, I've already tested it for GTA 4 and SpawnPlayer works perfectly for me. GTA 4 in particular requires a lot of testing. You're right, some things don't work, but I think that's because there are no examples available.

Try it with this server side:
spawnPlayer(client, client.player.position, 0.0, 1690783035);
In this case, the skin should change to Packie.

For faster help, join Discord  :D

Collssdew

#6
thanks so much for the reply :) , seems to be working fine now!