Wiki
Clone wikiEFLC-Multiplayer / apiObjects
apiObjects
addNew
Params:
apiMath::Vector3 pos
apiMath::Quaternion rot
unsigned int objHex: Model Hash, use the openIV name to hash tool.
unsigned int vWorld: World Id or NULL if streamable for all worlds
bool hasOffset: Does the position have offset? (SimpleNative trainer does)
unsigned int interior: NULL or the respective room key
int alpha: 0-255
#!c++ //Spawning a Yacht above your head apiMath::Vector3 pos = apiPlayer::get(playerid).getPos(); pos.z += 5.0f; int yatch[6]; unsigned int yatchtPart[6] = {1239854102, 2219185248, 67157199, 1930762713, 1233545547, 1005833766}; for(size_t i = 0; i < 6; i++) { yatch[i] = apiObjects::addNew(pos, apiMath::Quaternion(0.0f, 0.0f, 1.0f, 0.0f), yatchtPart[i], 1, false, 0, 255); }
Remove
Deletes an object by ID. This function throws out_of_range exception.
Params:
int objectId
Is Valid
Returns BOOLEAN for whether the object ID exists or not
Move Object
Moves the object to a new position and rotation in a given interval
Params:
int objectId
apiMath::Vector3 target position
apiMath::Quaternion target rotation
unsigned int interval
Updated