Skip to content
The Chat Archive
gpt-4-0314· OpenAI WildChat-4.8M (AI2)

I'm working on a fivem script if isPlayerNearObject(createdObject, 3.0) and…

  1. User

    I'm working on a fivem script

    if isPlayerNearObject(createdObject, 3.0) and IsControlJustReleased(0, 38) then -- 38 is the key code for "E"

    what would the keycode for R be?

  2. Assistant

    The keycode for "R" would be 45. So your code would look like this if you want to trigger it with the "R" key:

    if isPlayerNearObject(createdObject, 3.0) and IsControlJustReleased(0, 45) then -- 45 is the key code for "R"
    
  3. User

    fivem what is a scaleform?

  4. Assistant

    In FiveM, a scaleform is a 2D Flash-based graphic component originally used in the Rockstar Advanced Game Engine (RAGE) to create visual elements like User Interface (UI), menus, subtitles, loading screens, and other in-game UI elements. These scaleforms are pre-built Flash files with their ActionScript integrated into the game scripts. They are rendered on top of in-game 3D assets and are a part of the game's UI.

    In FiveM, scaleforms can be used to create custom UI elements, HUDs, or in-game menus, mainly for custom game modes and resources. You manipulate scaleforms using FiveM's native functions, including loading them, positioning them on the screen, and interacting with their built-in events or functions.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.