mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-12 02:08:14 +08:00
[saco] Implement/match CVehicle::SetLockedState(...)
This commit is contained in:
1 parent
fdbaa2a9e6
commit
075133ad72
3 files changed
+16
No files matched your search
@@ -68,6 +68,7 @@ const SCRIPT_COMMAND play_sound = { 0x018c, "fffi" };
|
||||
|
||||
const SCRIPT_COMMAND enable_train_traffic = { 0x06d7, "i" };
|
||||
|
||||
const SCRIPT_COMMAND lock_car = { 0x0519, "ii" };
|
||||
const SCRIPT_COMMAND put_train_at = { 0x07c7, "ifff" };
|
||||
|
||||
const SCRIPT_COMMAND get_active_interior = { 0x077e, "v" };
|
||||
|
||||
@@ -66,3 +66,16 @@ BOOL CVehicle::IsOccupied()
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CVehicle::SetLockedState(int iLocked)
|
||||
{
|
||||
if(!m_pVehicle) return;
|
||||
|
||||
if(iLocked) {
|
||||
ScriptCommand(&lock_car,m_dwGTAId,1);
|
||||
} else {
|
||||
ScriptCommand(&lock_car,m_dwGTAId,0);
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
@@ -20,6 +20,8 @@ public:
|
||||
|
||||
void ResetPointers();
|
||||
|
||||
void SetLockedState(int iLocked);
|
||||
|
||||
BOOL HasADriver();
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user