Giter Site home page Giter Site logo

Comments (4)

DiLDoST avatar DiLDoST commented on May 20, 2024 2

3 More OpCodes (Tested+Working):

GET_CAR_ROLL=0x06BE,
// vHandle => yF (Rotation)
GET_CHAR_PLAYER_IS_TARGETING=0x0AD2,
// PlayerHandle => pHandle
GET_TARGET_BLIP_COORDINATES=0x0AB6,
// NONE => xF, yF, zF

Bro Give a thumbs up atleast, so i'll know that you read these naa please 😉

from gta-sa-scripthook.

DurtyFree avatar DurtyFree commented on May 20, 2024 1

Buddy! I have founded and tested alot of opcodes which you can use in your project, they include IS_PED_SHOOTING, GET_VEHICLE_DRIVER, EXPLODE_PED_HEAD, IS_MODEL_HELI/PLANE/BOAT/etc, GIVE_WEAPON_TO_PED (The most useful, which isn't yet on your project) and much more, i have tested nearly 27 of them but i think i still have a list of more than 100 to test. Can i share them here in comments on anywhere? They are formatted the same way as you did, the comments make them absolutely clear on how to use them like:
HAS_PED_SPOTTED_PED =0x0..., // pHandle, pHandle => bool

Can i share with you?

Sure just go ahead and feel free to share it.

from gta-sa-scripthook.

DiLDoST avatar DiLDoST commented on May 20, 2024 1

Bro! Check and tell me what enums do you need nah so i will share, mention the ones, am a bit lazy to search for class names in these comments 😅
I have more, nearly 90, i will check and share again. Okay bro?

		FIX_CAR = 0x0A30,
		// vHandle
		FORCE_ALL_VEHICLE_LIGHTS_OFF = 0x0A37,
		// b
		GET_NUMBER_OF_PASSENGERS = 0x01E9,
		// vHandle => i
		GET_CAR_MASS = 0x06A3,
		// vHandle => f
		IS_CHAR_GETTING_IN_TO_A_CAR = 0x09DE,
		// pHandle =?> b
		GET_DRIVER_OF_CAR = 0x046C,
		// vHandle => pHandle
		FORCE_CAR_LIGHTS = 0x067F,
		// vHandle, i (0 = NO_CAR_LIGHT_OVERRIDE, 1 = FORCE_CAR_LIGHTS_OFF, 2 = FORCE_CAR_LIGHTS_ON)
		SET_CAR_ENGINE_BROKEN = 0x081D,
		// vHandle, b
		SET_CAR_ENGINE_ON = 0x0918,
		// vHandle, b
		SET_CAM_BEHIND_PLAYER = 0x0373,
		// <NONE>
		IS_CAR_ON_FIRE = 0x0495,
		// vHandle => b
		CLOSE_ALL_CAR_DOORS = 0x0508,
		// vHandle
		FREEZE_CAR_POSITION = 0x0519,
		// vHandle, b
		GIVE_WEAPON_TO_CHAR = 0x01B2,
		// pHandle, i (WeaponType), i (Ammo)
		SET_CHAR_ONLY_DAMAGED_BY_PLAYER = 0x02AA,
		// pHandle, b
		IS_CHAR_SHOOTING = 0x02E0,
		// pHandle => b
		EXPLODE_CHAR_HEAD = 0x0321,
		// pHandle
		SET_CHAR_VISIBLE = 0x0336,
		// pHandle, b
		HAS_CHAR_SPOTTED_CHAR = 0x0364,
		// pHandle, pHandle
		SET_CAN_BURST_CAR_TYRES = 0x053F,
		// vHandle, b
		IS_THIS_MODEL_A_BOAT = 0x081E,
		// i (Model) => b
		IS_THIS_MODEL_A_PLANE = 0x081F,
		// i (Model) => b
		IS_THIS_MODEL_A_HELI = 0x0820,
		// i (Model) => b
		IS_BIG_VEHICLE = 0x0969,
		// vHandle => b
		MAKE_HELI_COME_CRASHING_DOWN = 0x0564,
		// vHandle
		SET_CAR_ROLL = 0x0731,
		// vHandle, yF (Rotation)
		
		FORCE_WEATHER = 0x01B5,
		// wHandle
		FORCE_WEATHER_NOW = 0x01B6,
		// wHandle
		RELEASE_WEATHER = 0x01B7,
		//NONE
		STORE_WEATHER = 0x0251,
		//NONE
		RESTORE_WEATHER = 0x0252,
		//NONE
		LOAD_AND_LAUNCH_MISSION_INTERNAL = 0x0417,
		// i (Mission)
		PLAY_MISSION_PASSED_TUNE = 0x0394,
		// i=1
		FAIL_CURRENT_MISSION = 0x045C,
		//NONE
		
		
		SET_COLLECTABLE1_TOTAL = 0x02ED,
		// i
		IS_CHAR_MALE = 0x03A3,
		// pHandle
		SET_WANTED_MULTIPLIER = 0x03C7,
		// f (DEFAULT: 1.0)
		SET_CAMERA_IN_FRONT_OF_PLAYER = 0x03C8,
		// NONE
		IS_CAR_VISIBLY_DAMAGED = 0x03C9,
		// vHandle => b
		IS_CAR_STUCK = 0x03CE,
		// vHandle => b
		IS_CHAR_ON_FOOT = 0x036A,
		// pHandle => b
		IS_CHAR_ON_ANY_BIKE = 0x04C5,
		// pHandle => b
		HAS_CHAR_BEEN_PHOTOGRAPHED = 0x04C5,
		// pHandle
		BURST_CAR_TYRE = 0x04FE,
		// vHandle, i
		SET_UPSIDEDOWN_CAR_NOT_DAMAGED = 0x03ED,
		// vHandle, i (0=DEFAULT, 1=NOT_DAMAGED_WHEN_UPSIDE_DOWN)
		IS_CHAR_IN_ANY_BOAT = 0x04A7,
		// pHandle => b
		IS_CHAR_IN_ANY_HELI = 0x04A9,
		// pHandle => b
		IS_CHAR_IN_ANY_PLANE = 0x04AB,
		// pHandle => b
		IS_CHAR_IN_WATER = 0x04AD,
		// pHandle => b
		IS_CHAR_IN_FLYING_VEHICLE = 0x04C8,
		// pHandle => b
		SET_CHAR_DROWNS_IN_WATER = 0x04D8,
		// pHandle, i (0 = not drown, DEFAULT:1 = drown)
		SET_PLAYER_MOOD = 0x04E3,
		// PlayerHandle, i (Mood), i (Duration)
		PLAYER_MADE_PROGRESS = 0x030C,
		// i
		SET_PROGRESS_TOTAL = 0x030D,
		// i
		SET_CAR_WATERTIGHT = 0x039C,
		// vHandle, i (0 = not watertight, 1 = watertight)
		SET_TOTAL_NUMBER_OF_MISSIONS = 0x042C,
		// i
		
		SET_PLAYER_NEVER_GETS_TIRED = 0x0330,
		// PlayerHandle, i (DEFAULT:0 = disable, 1 = enable)
		SET_PLAYER_FAST_RELOAD = 0x0331,
		// PlayerHandle, i (DEFAULT:0 = disable, 1 = enable)
		SET_CHAR_BLEEDING = 0x0332,
		// pHandle, i (DEFAULT:0 = disable, 1 = enable)
		SET_FREE_RESPRAYS = 0x0335,
		// i (0 = not free, 1 = free)
		
		SET_FREE_HEALTH_CARE = 0x0414,
		// PlayerHandle, i (DEFAULT:0 = disable, 1 = enable)
		IS_CAR_DOOR_CLOSED = 0x0415,
		// vHandle, i (CarDoor) => b
		
		IS_CAR_PASSENGER_SEAT_FREE = 0x0431,
		// vHandle, i (0: FRONT_RIGHT_SEAT/REAR_SEAT, 1: FRONT_LEFT_SEAT, 2: REAR_RIGHT_SEAT) => bool
		ARE_ANY_CAR_CHEATS_ACTIVATED = 0x0445,
		// NONE
		SET_CHAR_SUFFERS_CRITICAL_HITS = 0x0446,
		// pHandle, i (0 = disable dismemberment, 1 = enable dismemberment)
		SET_CAR_TEMP_ACTION = 0x0477,
		// vHandle, i (TempAction), i (Duration)
		SET_PLAYER_CAN_DO_DRIVE_BY = 0x0501,
		// PlayerHandle, i (0 = disable, DEFAULT:1 = enable)
		SET_CHAR_NEVER_TARGETTED = 0x0568,
		// pHandle, i (DEFAULT:0 = can be targetted, 1 = cannot be targetted)
		

from gta-sa-scripthook.

DiLDoST avatar DiLDoST commented on May 20, 2024

Buddy! I have founded and tested alot of opcodes which you can use in your project, they include IS_PED_SHOOTING, GET_VEHICLE_DRIVER, EXPLODE_PED_HEAD, IS_MODEL_HELI/PLANE/BOAT/etc, GIVE_WEAPON_TO_PED (The most useful, which isn't yet on your project) and much more, i have tested nearly 27 of them but i think i still have a list of more than 100 to test. Can i share them here in comments on anywhere? They are formatted the same way as you did, the comments make them absolutely clear on how to use them like:
HAS_PED_SPOTTED_PED =0x0..., // pHandle, pHandle => bool

Can i share with you?

from gta-sa-scripthook.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.