The Lab
OBJECT native

SLIDE_OBJECT

returns BOOL8 paramsbuild 1207

Moves the object step by step toward the target position at the given speed per axis, returning true once it arrives.

Call it every frame until it returns true.

Signature

C
BOOL SLIDE_OBJECT(Object object, float toX, float toY, float toZ, float speedX, float speedY, float speedZ, BOOL collision); // 0x2FDFF4107B8C1147 b1207

Parameters

#NameType
1objectObject
2toXfloat
3toYfloat
4toZfloat
5speedXfloat
6speedYfloat
7speedZfloat
8collisionBOOL

Facts

Facts about SLIDE_OBJECT
Name
SLIDE_OBJECT
Hash
0x2FDFF4107B8C1147
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x2FDFF4107B8C1147, -- SLIDE_OBJECT
  0, -- Object object
  0.0, -- float toX
  0.0, -- float toY
  0.0, -- float toZ
  0.0, -- float speedX
  0.0, -- float speedY
  0.0, -- float speedZ
  false -- BOOL collision
)
if result then
  -- ...
end
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x2FDFF4107B8C1147", // SLIDE_OBJECT
  0, // Object object
  0.0, // float toX
  0.0, // float toY
  0.0, // float toZ
  0.0, // float speedX
  0.0, // float speedY
  0.0, // float speedZ
  false, // BOOL collision
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x2FDFF4107B8C1147, // SLIDE_OBJECT
  0, // Object object
  0.0f, // float toX
  0.0f, // float toY
  0.0f, // float toZ
  0.0f, // float speedX
  0.0f, // float speedY
  0.0f, // float speedZ
  false // BOOL collision
);
All OBJECT natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.