Comments (3)
Just tested it, and I have the same result. However, testing with the neon
gives me the correct result both times.
from natives.
This seems like it would be somewhat expected behavior, if the model is in memory then it can get reliable information based on the actual model info, but if its not then it has to use the meta files which might be incorrect in some cases.
const model = GetHashKey('kamacho');
setImmediate(async () => {
// will output 2, the model hasn't been loaded into memory
console.log(GetVehicleModelNumberOfSeats(model));
RequestModel(model)
while (!HasModelLoaded(model)) {
await Delay(0);
}
// will output 4, the model has been loaded into memory
console.log(GetVehicleModelNumberOfSeats(model));
SetModelAsNoLongerNeeded(model);
while (HasModelLoaded(model)) {
await Delay(0);
}
// will output 2, model is no longer in memory.
console.log(GetVehicleModelNumberOfSeats(model));
})
from natives.
If the model seat data is in memory, it returns the valid number of seats; otherwise it will fall back to the number of seats in the vehicle model's layout. Similar behavior to natives like GetModelDimensions which will also only work properly if the model is loaded.
from natives.
Related Issues (20)
- Nigh HOT 1
- R
- Some natives "improve" link, links to wrong github
- Duplicated native HOT 4
- SET_PED_CONFIG_FLAG RPC native takes a long time to load
- Long natives name HOT 3
- Server setters tagged as RPC HOT 1
- [issue/question] Native information present in core files that is missing from natives documentation. Intended or issue? HOT 3
- CreateMissionTrain changed in 2802 HOT 1
- PAS Updates HOT 3
- --- ns: VEHICLE aliases: ["0x9D44FCCE98450843"] --- ## _SET_VEHICLE_SILENT ```c // 0x9D44FCCE98450843 0x968E5770 void _SET_VEHICLE_SILENT(Vehicle vehicle, BOOL toggle); ``` ``` If set to TRUE, it seems to suppress door noises and doesn't allow the horn to be continuous. ``` ## Parameters * **vehicle**: * **toggle**: HOT 1
- How can I get intrinsic matrices and transformation matrices from depth to world corrdinate? HOT 1
- Migrate FiveM Natives into native pepository HOT 4
- ForcelightningFlash() at coords?
- Centralize Enums and Bones Documentation
- Native type declarations HOT 1
- Issue with ApplyPedBloodSpecific HOT 4
- Update N_0x83a169eabcdb10a2 HOT 3
- Questions regarding two audio natives
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from natives.