Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/08/20 in Posts

  1. Heute ein Video für alle die Probleme mit GetData und SetData in der 1.1.0 haben oder ganz neu sind.
    2 points
  2. Since my RAGE launcher was updated, it causes that error, I want to enter a server, load what is necessary and when the gta v has to be opened and load to be able to enter, I get that typical error, gta closed unexpectedly with the options to restart or enter in safe mode, however the gta V in campaign mode works fine for me without errors as well as online, I have tried to reinstall my gta as well as the RAGE and I still get that message, if anyone knows because that error is due please help me
    1 point
  3. 1 point
  4. i'm making a sistem where i need to get the player's vehicle speed server-side. Entity::getSpeed() works only on client side. Any way to do it? I thought about sending it constantly with an event from client to the server, but i'm afraid that some malicious values can be sent with cheats Edit: Found out, here is the function i wrote in case someone else needs it function getVehSpeed(vehicle){ let velocity = vehicle.velocity; return (Math.sqrt((velocity.x * velocity.x) + (velocity.y * velocity.y) + (velocity.z * velocity.z)) * 3.6); } it returns the speed in km/h, for other measurements you can calculate it easly
    1 point
  5. Files and folders are now encrypted, it's not a bug.
    1 point
  6. How can you edit a property in a null object? this.PlayerData = null;
    1 point
  7. My code didnt compile with "Player" variable, until I changed Visual Studio project properties I uninstall nuget GTANetworkAPI package and make Reference to Bootstrapper.dll from server-files/dotnet/runtime I change Project Settings: Target Framework .Net Core 3.1 Platform Target x64 And now, when I connecting to the server I got same error in Server console Could not load type 'GTANetworkAPI.Client' from assembly 'Bootstrap My code right now using System; using GTANetworkAPI; namespace GTAServer { public class Main : Script { [ServerEvent(Event.ResourceStart)] public void OnResourceStart() { NAPI.Util.ConsoleOutput("Resource started"); } [ServerEvent(Event.PlayerConnected)] public void OnPlayerConnected(Player player) { NAPI.Util.ConsoleOutput($"{Player.Name} has connected"); player.SendChatMessage("Welcome to our server!"); } } }
    1 point
  8. You know, there's a reaction feature. No need to post "+" and co...
    1 point
  9. Interiors Credits to CodeWalker (dexyfex and contributors) and GTA V Script Decompiler (zorg93) for providing the tools to get this information. Casino (Heist variation?) Position: new mp.Vector3(2479.300, -273.900, -58.000); Casino (Back?) Position: new mp.Vector3(2523.400, -270.000, -58.700); Casino: Hotel Position: new mp.Vector3(2504.400, -257.200, -39.100); Casino: Loading Area Position: new mp.Vector3(2554.000, -281.400, -64.700); Casino: Vault Floor Position: new mp.Vector3(2488.300, -267.400, -70.600); Inside Vault: new mp.Vector3(2508.700, -238.500, -70.700); Entity Sets/Interior Props: Set_Vault_Door set_vault_dressing Set_vault_cash_01 Set_vault_cash_02 Set_vault_gold_01 Set_vault_gold_02 Set_vault_art_01 Set_vault_art_02 Set_vault_diamonds_01 Set_vault_diamonds_02 Casino: Utility Room Position: new mp.Vector3(2519.900, -255.300, -24.100); Casino: Elevator Shaft Position: new mp.Vector3(2572.900, -253.400, -64.700); Casino: Tunnel Position: new mp.Vector3(2497.700, -312.800, -69.900); Arcade Position: new mp.Vector3(2730.000, -380.000, -49.000); Interior Type: ch_DLC_Arcade Yes, it looks broken without enabling some entity sets/interior props. Planning Room Position: new mp.Vector3(2722.300, -360.000, -53.500); Interior Type: ch_DLC_Plan Same as above, looks broken without enabling some entity sets/interior props. Arcade & Planning Room Entity Sets/Interior Props Sharing these together because a planning room entitySet might change arcade interior and vice versa. Entity_Set_Plushie_01 Entity_Set_Plushie_02 Entity_Set_Plushie_03 Entity_Set_Plushie_04 Entity_Set_Plushie_05 Entity_Set_Plushie_06 Entity_Set_Plushie_07 Entity_Set_Plushie_08 Entity_Set_Plushie_09 Set_Plan_Cockroaches Set_Plan_Drone_Parts Set_Plan_Electric_Drill Set_Plan_Fireman_Helmet Set_Plan_Gruppe_Sechs_Outfits Set_Plan_Hacking_Device Set_Plan_Plastic_Explosives Set_Plan_Stealth_Outfits Set_Plan_Swipe_Card_01a Set_Plan_Swipe_Card_01b Set_Plan_Vault_Drill Set_Plan_Vault_Drill_Alt Set_Plan_Vault_KeyCard_01a Set_Plan_Vault_Laser Set_Plan_Vault_Laser_Alt entity_set_arcade_set_ceiling_beams entity_set_arcade_set_ceiling_flat entity_set_arcade_set_ceiling_mirror entity_set_arcade_set_derelict entity_set_arcade_set_derelict_carpet entity_set_arcade_set_derelict_clean_up entity_set_arcade_set_streetx4 entity_set_arcade_set_trophy_brawler entity_set_arcade_set_trophy_cabs entity_set_arcade_set_trophy_claw entity_set_arcade_set_trophy_gunner entity_set_arcade_set_trophy_king entity_set_arcade_set_trophy_love entity_set_arcade_set_trophy_monkey entity_set_arcade_set_trophy_patriot entity_set_arcade_set_trophy_racer entity_set_arcade_set_trophy_retro entity_set_arcade_set_trophy_strife entity_set_arcade_set_trophy_teller entity_set_big_screen entity_set_constant_geometry entity_set_floor_option_01 entity_set_floor_option_02 entity_set_floor_option_03 entity_set_floor_option_04 entity_set_floor_option_05 entity_set_floor_option_06 entity_set_floor_option_07 entity_set_floor_option_08 entity_set_hip_light_no_neon entity_set_mural_neon_option_01 entity_set_mural_neon_option_02 entity_set_mural_neon_option_03 entity_set_mural_neon_option_04 entity_set_mural_neon_option_05 entity_set_mural_neon_option_06 entity_set_mural_neon_option_07 entity_set_mural_neon_option_08 entity_set_mural_option_01 entity_set_mural_option_02 entity_set_mural_option_03 entity_set_mural_option_04 entity_set_mural_option_05 entity_set_mural_option_06 entity_set_mural_option_07 entity_set_mural_option_08 entity_set_ret_light_no_neon entity_set_screens set_plan_arcade_x4 set_plan_bed set_plan_casino set_plan_computer set_plan_garage set_plan_hacker set_plan_keypad set_plan_mechanic set_plan_no_bed set_plan_plans set_plan_pre_setup set_plan_scribbles set_plan_setup set_plan_vault set_plan_wall set_plan_weapons Example Code NOTE: This snippet was made to test if entitySet names work and will probably look pretty ugly. const arcadeId = mp.game.interior.getInteriorAtCoordsWithType(2730.0, -380.0, -49.0, "ch_DLC_Arcade"); const planRoomId = mp.game.interior.getInteriorAtCoordsWithType(2730.0, -380.0, -49.0, "ch_DLC_Plan"); const propList = { "arcade": [ "entity_set_arcade_set_derelict", "entity_set_floor_option_01", "entity_set_arcade_set_ceiling_mirror" ], "planRoom": [ "set_plan_bed", "set_plan_garage", "set_plan_setup", "set_plan_scribbles", "set_plan_computer", "set_plan_arcade_x4", "set_plan_plans", "set_plan_casino", "set_plan_keypad", "set_plan_vault", "set_plan_mechanic", "set_plan_hacker", "set_plan_weapons", "Set_Plan_Vault_Laser", "Set_Plan_Vault_Drill", "Set_Plan_Electric_Drill", "Set_Plan_Plastic_Explosives", "Set_Plan_Hacking_Device", "Set_Plan_Cockroaches", "Set_Plan_Stealth_Outfits", "Set_Plan_Gruppe_Sechs_Outfits", "Set_Plan_Fireman_Helmet", "Set_Plan_Drone_Parts", "Set_Plan_Vault_KeyCard_01a", "Set_Plan_Swipe_Card_01a", "Set_Plan_Swipe_Card_01b" ] }; for (const [group, props] of Object.entries(propList)) { for (const prop of props) { mp.game.interior.enableInteriorProp(group === "arcade" ? arcadeId : planRoomId, prop); } } mp.game.interior.refreshInterior(arcadeId); mp.game.interior.refreshInterior(planRoomId);
    1 point
×
×
  • Create New...