Jump to content

NPCs With Functions


papam77

Recommended Posts

Posted

Hello, i made video from newest update. But i wanna make functions to NPCs.

Example:

I will come around NPC max. 2meters and then i will press Left Alt then i will in mode.

NPC near hunter = Hunter arena.

Script must work as lobby, everything in one server.

With functions i must use ?

Posted
wait, you want to your npc, to have a gui ??, if you click on the NPC to appear a GUI ???

Yes, try connect to TG server and you will see.

Posted

You asked for the functions, he told you what you need.

That's:

setPedControlState 
createColRectangle 
"onColShapeHit" 

And GUI or dx Functions for whatever action.

Posted
You asked for the functions, he told you what you need.

That's:

setPedControlState 
createColRectangle 
"onColShapeHit" 

And GUI or dx Functions for whatever action.

YEP :D

Posted
setPedControlState 
createColRectangle 
"onColShapeHit" 
startResource 
triggerServerEvent 
triggerClientEvent 
guiCreateWindow -- and more with GUI 

--ETC--

Posted
setPedControlState 
createColRectangle 
"onColShapeHit" 
startResource 
triggerServerEvent 
triggerClientEvent 
guiCreateWindow -- and more with GUI 

--ETC--

If it's supposed to be a copy of TG/FFS, no, startResource is not used.

Posted
setPedControlState 
createColRectangle 
"onColShapeHit" 
startResource 
triggerServerEvent 
triggerClientEvent 
guiCreateWindow -- and more with GUI 

--ETC--

If it's supposed to be a copy of TG/FFS, no, startResource is not used.

And what can use if not startResource ?

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...