Skip to content

Instantly share code, notes, and snippets.

@DouglasSherk
Created April 16, 2017 18:15
Show Gist options
  • Save DouglasSherk/a191fd4a899e52fb04fc61e89348f602 to your computer and use it in GitHub Desktop.
Save DouglasSherk/a191fd4a899e52fb04fc61e89348f602 to your computer and use it in GitHub Desktop.
ARP NPCs API simplified, header.
/**
* Registers an NPC or zone. Note that this actually creates
* the NPC for you and sets it up as well.
*
* @param name[] name of the NPC, ex. "Edeka Cashier"
* @param Float:origin[3] where to spawn the NPC
* @param Float:angle which direction it should face (0.0-180.0)
* @param model[] the model the NPC should use (if not a zone)
* @param handler[] function to call when a user presses "e" next to it
* @param property[] the internal name of the property that it belongs to
*
* @return id id of the created entity
*/
native ARP_RegisterNpc(name[], Float:origin[3], Float:angle, model[], handler[], property[] = "")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment