-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update 2 natives and modify description for one native
- Loading branch information
Showing
5 changed files
with
170 additions
and
36 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
ns: GRAPHICS | ||
--- | ||
## SET_SCALEFORM_MOVIE_TO_USE_LARGE_RT | ||
|
||
```c | ||
// 0x32F34FF7F617643B | ||
void SET_SCALEFORM_MOVIE_TO_USE_LARGE_RT(cs_type(Any) int scaleformHandle, cs_type(Any) bool toggle); | ||
``` | ||
### Used to configure a Scaleform to use a large rendertarget. This can be useful for centering text for example, when displaying the name of an organization. (DLC Import/Export) | ||
## Parameters | ||
* **scaleformHandle**: The handle of the Scaleform to be used. | ||
* **toggle**: A boolean switch to enable/disable the use of the large rendertarget. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
--- | ||
ns: HUD | ||
aliases: ["_GET_LABEL_TEXT"] | ||
--- | ||
## GET_FILENAME_FOR_AUDIO_CONVERSATION | ||
|
||
```c | ||
// 0x7B5280EBA9840C72 0x95C4B5AD | ||
char* GET_FILENAME_FOR_AUDIO_CONVERSATION(char* labelName); | ||
``` | ||
``` | ||
Gets a localized string literal from a label name. | ||
GET_F* | ||
``` | ||
## Parameters | ||
* **labelName**: The label name for which the audio conversation filename is requested. | ||
## Return value | ||
Returns the filename associated with the provided labelName. | ||
## Examples | ||
```lua | ||
-- Get the vehicle in which the player is currently seated | ||
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false) | ||
-- Get the model of the vehicle | ||
local model = GetEntityModel(vehicle) | ||
-- Get the display name of the vehicle model | ||
local displayName = GetDisplayNameFromVehicleModel(model) | ||
-- Get the label text for the audio conversation associated with the display name | ||
local label = GetFilenameForAudioConversation(displayName) | ||
-- Print the label text | ||
print(label) | ||
``` | ||
|
||
```javascript | ||
// Get the vehicle in which the player is currently seated | ||
const vehicle = GetVehiclePedIsIn(PlayerPedId(), false); | ||
|
||
// Get the model of the vehicle | ||
const model = GetEntityModel(vehicle); | ||
|
||
// Get the display name of the vehicle model | ||
const displayName = GetDisplayNameFromVehicleModel(model); | ||
|
||
// Get the label text for the audio conversation associated with the display name | ||
const label = GetFilenameForAudioConversation(displayName); | ||
|
||
// Log the label text to the console | ||
console.log(label); | ||
``` | ||
|
||
```csharp | ||
using static CitizenFX.Core.Native.API; | ||
|
||
// Get the vehicle in which the player is currently seated | ||
Vehicle vehicle = GetVehiclePedIsIn(PlayerPedId(), false); | ||
|
||
// Get the model of the vehicle | ||
uint model = (uint)GetEntityModel(vehicle); | ||
|
||
// Get the display name of the vehicle model | ||
string displayName = GetDisplayNameFromVehicleModel(model); | ||
|
||
// Get the label text for the audio conversation associated with the display name | ||
string label = GetFilenameForAudioConversation(displayName); | ||
|
||
// Print the label text | ||
Debug.WriteLine(label); | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters