Skip to content

Commit 49fba70

Browse files
Update DOCUMENTATION.md
1 parent eb27cdc commit 49fba70

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/doc/DOCUMENTATION.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@ Check the [`meta.xml`](/newmodels_azul/meta.xml) file to see the exported functi
7171
Example usage:
7272

7373
```lua
74-
-- The normal createVehicle would not work invented IDs such as -2
74+
-- The normal createVehicle would not work with invented IDs such as -2,
75+
-- so we call the available exported function
7576
local vehicle = exports['newmodels_azul']:createVehicle(id, x, y, z, rx, ry, rz, numberplate)
7677
```
78+
79+
## Important Tips ⚠️
80+
81+
These are good practices and general advice.
82+
83+
- Remember that your models must work well with GTA: San Andreas in terms of optimization.
84+
- Always with several players and PC specs.
85+
- An element created serverside with a custom model will sync its custom model to all clients.
86+
- Useful for spawning vehicles, setting player and NPC skins.
87+
- An element created clientside with a custom model will not sync to other clients, meaning only the client that ran the code will see the custom model.
88+
- Useful for model previewing and object spawning which works best clientside.

0 commit comments

Comments
 (0)