Where to find Lua functions for GTA V

Hi there,

I’m new here and i just want to do an RP Server, i used all nice scripts that can help me for an RP server but now i want to go further. I found (i forgot where) the natives.h file in the ScriptHookV SDK but i dont know how to fin all functions like :
SetVehicleDoorsLocked(car, 2)
SetVehicleDoorsLockedForPlayer(car, PlayerId(), 2)
And all others

Without it i think its impossible to develop nice scripts and if somebody can help me it will be nice.

Sorry for my shrub cloud coming from the France but who likes cassoulet

Here : http://www.dev-c.com/nativedb/

or in AppData\Local\FiveM\FiveM.app\citizen\scripting\lua

1 Like

Firstable, thanks for your answer but this exactly what i foud in the natives.h. Codes like this :

static void SET_DEBUG_LINES_AND_SPHERES_DRAWING_ACTIVE(BOOL enabled) { invoke<Void>(0x175B6BFC15CDD0C5, enabled); } // 0x175B6BFC15CDD0C5 0x1418CA37
	static void DRAW_DEBUG_LINE(float x1, float y1, float z1, float x2, float y2, float z2, int r, int g, int b, int alpha) { invoke<Void>(0x7FDFADE676AA3CB0, x1, y1, z1, x2, y2, z2, r, g, b, alpha); } // 0x7FDFADE676AA3CB0 0xABF783AB
	static void DRAW_DEBUG_LINE_WITH_TWO_COLOURS(float x1, float y1, float z1, float x2, float y2, float z2, int r1, int g1, int b1, int r2, int g2, int b2, int alpha1, int alpha2) { invoke<Void>(0xD8B9A8AC5608FF94, x1, y1, z1, x2, y2, z2, r1, g1, b1, r2, g2, b2, alpha1, alpha2); } // 0xD8B9A8AC5608FF94 0xE8BFF632
	static void DRAW_DEBUG_SPHERE(float x, float y, float z, float radius, int r, int g, int b, int alpha) { invoke<Void>(0xAAD68E1AB39DA632, x, y, z, radius, r, g, b, alpha); } // 0xAAD68E1AB39DA632 0x304D0EEF
	static void DRAW_DEBUG_BOX(float x1, float y1, float z1, float x2, float y2, float z2, int r, int g, int b, int alpha) { invoke<Void>(0x083A2CA4F2E573BD, x1, y1, z1, x2, y2, z2, r, g, b, alpha); } // 0x083A2CA4F2E573BD 0x8524A848
	static void DRAW_DEBUG_CROSS(float x, float y, float z, float size, int r, int g, int b, int alpha) { invoke<Void>(0x73B1189623049839, x, y, z, size, r, g, b, alpha); } // 0x73B1189623049839 0xB6DF3709
	static void DRAW_DEBUG_TEXT(char* text, float x, float y, float z, int r, int g, int b, int alpha) { invoke<Void>(0x3903E216620488E8, text, x, y, z, r, g, b, alpha); } // 0x3903E216620488E8 0x269B006F
	static void DRAW_DEBUG_TEXT_2D(char* text, float x, float y, float z, int r, int g, int b, int alpha) { invoke<Void>(0xA3BB2E9555C05A8F, text, x, y, z, r, g, b, alpha); } // 0xA3BB2E9555C05A8F 0x528B973B
	static void DRAW_LINE(float x1, float y1, float z1, float x2, float y2, float z2, int r, int g, int b, int alpha) { invoke<Void>(0x6B7256074AE34680, x1, y1, z1, x2, y2, z2, r, g, b, alpha); } // 0x6B7256074AE34680 0xB3426BCC
	static void DRAW_POLY(float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, int r, int g, int b, int alpha) { invoke<Void>(0xAC26716048436851, x1, y1, z1, x2, y2, z2, x3, y3, z3, r, g, b, alpha); } // 0xAC26716048436851 0xABD19253
	static void DRAW_BOX(float x1, float y1, float z1, float x2, float y2, float z2, int r, int g, int b, int alpha) { invoke<Void>(0xD3A9971CADAC7252, x1, y1, z1, x2, y2, z2, r, g, b, alpha); } // 0xD3A9971CADAC7252 0xCD4D9DD5
	static void _0x23BA6B0C2AD7B0D3(BOOL p0) { invoke<Void>(0x23BA6B0C2AD7B0D3, p0); } // 0x23BA6B0C2AD7B0D3 0xC44C2F44
	static Any _0x1DD2139A9A20DCE8() { return invoke<Any>(0x1DD2139A9A20DCE8); } // 0x1DD2139A9A20DCE8 0xBA9AD458

What i want is things like SetVehicleDoorsLocked(car, 2), where to find it ??

Ok thanks man i love you, it was on natives.lua i checked this.

1 Like

Yes on natives.lua ! :stuck_out_tongue:

I’m a begginer, can you explain me how he found this ?

AddEventHandler("playerSpawned", function(spwawn)
	TriggerClientEvent('chatMessage', source, "Serveur:", {187, 235, 42}, "Bienvenue sur les serveur ZN")
	TriggerClientEvent('chatMessage', source, "Serveur:", {187, 235, 42}, "Passe sur notre TS : ts.znservers.com si tu as besoin d'aide !")
  end)

Looks good ? But I’m also a real beginner, I try to learn LUA !

Okay, no problem. I’m waiting for somebody then :smile: