Skip to content
View in the app

A better way to browse. Learn more.

GTAGames.nl - De Nederlandse Grand Theft Auto Community!

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

NPC Skin veranderen

Hello,

Ik heb nu een werkende NPC, die doet wat ik wel.... Maar, hoe kan ik zijn skin veranderen? Ik heb het gevoel dat het bij OnNPCSpawn moet ergens, maar hoe/waar?

#define RECORDING "Homeguid" //Dit is de bestandsnaam van je opgenomen bestand, zonder extensie!
#define RECORDING_TYPE 2 //1 Voor in een voertuig en 2 voor te voet.

#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);

#if RECORDING_TYPE == 1
 public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
 public OnNPCExitVehicle() StopRecordingPlayback();
#else
 public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#define RECORDING "Homeguid" //Dit is de bestandsnaam van je opgenomen bestand, zonder extensie!
#define RECORDING_TYPE 2 //1 Voor in een voertuig en 2 voor te voet.

#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);

#if RECORDING_TYPE == 1
 public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
 public OnNPCExitVehicle() StopRecordingPlayback();
#else
 public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif

Alvast bedankt :D

Featured Replies

SetPlayerSkin([npcid/naam ofzo, moet je ff proberen], [skinid]);

  • Author

SetPlayerSkin([npcid/naam ofzo, moet je ff proberen], [skinid]);

Waar moet ik dat zetten? Bij OnNPCSpawn

In je gamemode. Daar moet je bij OnPlayerSpawn kijken of het de NPC is (vergelijk naam) en vervolgens gebruik je SetPlayerSkin zoals je dat bij een normale speler zou doen.

  • Author

In je gamemode. Daar moet je bij OnPlayerSpawn kijken of het de NPC is (vergelijk naam) en vervolgens gebruik je SetPlayerSkin zoals je dat bij een normale speler zou doen.

Dankje!

Is me gelukt met

if (IsPlayerNPC(playerid))
   {
SetPlayerSkin(playerid, 147);
return 1;
}
SetPlayerInterior(playerid,0);
TogglePlayerClock(playerid,0);
SetPlayerPos(playerid, 1937.6,-2266.5,15.0);
   SendClientMessage(playerid, COLOR_LIGHTBLUE, "SERVER: Type /help to get started - Have fun in (U)ltimate (S)tunts!");
   SetPlayerArmour(playerid, 100);

Probleem verholpen, hoeft niet meer op gereageerd te worden :-)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.