diff --git a/assets/sa/snippets.json b/assets/sa/snippets.json index 488f14f3..ca42d385 100644 --- a/assets/sa/snippets.json +++ b/assets/sa/snippets.json @@ -9,7 +9,7 @@ "0x448900": "const cleo_player = 0\n\nwhile true\n wait 200\n if is_player_playing cleo_player\n then \n int pos = FindPlayerCentreOfWorld(cleo_player)\n int bInGarage = CGarages_IsPointWithinHideOutGarage(pos)\n if is_bit_set bInGarage {bitIndex} 0\n then \n add_score cleo_player {money} 1\n end\n end\nend", "0x4563A0": "int pos = FindPlayerCentreOfWorld(-1)\nCPickups_RemoveUnnecessaryPickups(pos, 100.0)\nprint_help_string {text} \"Pickups cleared\"", "0x470740": "int DealerIndex = CStreamedScripts_FindStreamedScript(0xA47B60, 'DEALER')\nprint_help_formatted \"Index of streamed DEALER script: %d\" DealerIndex", - "0x504F80": "int playerChar = get_player_char 0\nint entity = get_ped_pointer playerChar\nCAEWeaponAudioEntity_WeaponFire wf = entity + 0x394\nwf(22, entity, 145)\n", + "0x504F80": "int playerChar = get_player_char 0\nint charPtr = get_ped_pointer playerChar\nint weaponAudioPtr = charPtr + 0x394\nconst weaponType = 22 // Pistol\nCAEWeaponAudioEntity_WeaponFire(weaponAudioPtr, weaponType, charPtr, 145)", "0x5625F0": "const cleo_player = 0\nint cleo_char = get_player_char cleo_player\nfloat posX, posY, posZ\n\nwhile true\n wait 0\n if\n test_cheat \"p\"\n then\n posX, posY, posZ = get_char_coordinates cleo_char\n int numPolice = CWanted_WorkOutPolicePresence(posX, posY, posZ, 14.0) \n print_help_formatted \"Number of police in range: %d\" numPolice\n end\nend", "0x5693F0": "spawn_vehicle_by_cheating #INFERNUS\n\nint pos = FindPlayerCentreOfWorld(-1)\nint addr = CWorld_FindNearestObjectOfType(#INFERNUS, pos, 50.0, false, false, {vehicles} true, false, false, false)\n\nif addr > 0\nthen\n Car infernus = get_vehicle_ref addr\n Blip b = add_blip_for_car infernus\nelse\n print_help_formatted \"Car not found\"\nend", "0x569660": "Char player_char = get_player_char 0\n\nwhile true\n wait 0\n \n float x, y, _\n x, y, _ = get_char_coordinates player_char\n\n float z = CWorld_FindGroundZForCoord(x, y)\n use_text_commands true\n display_text_formatted 10.0 0 \"Z coord: %.2f\" z \n \nend // while", diff --git a/ngsw.json b/ngsw.json index c42c7f07..6344a7e4 100644 --- a/ngsw.json +++ b/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1734024321638, + "timestamp": 1734054478054, "index": "/index.html", "assetGroups": [ {