Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/08/23 in all areas

  1. Sure , You Can Buy , if You Want Buy Dm Me On Discord : ErroR#3727
    1 point
  2. 1 point
  3. Sure, I'd be happy to help you understand the script and explain how it works. This script appears to be a part of a game server work system. The main function addCommandHandler is used to handle the command "trabajar" (which means "work" in Spanish) that players can execute in the game. Here's a step-by-step explanation of how the script works: The script checks if the player executing the command is not currently in a vehicle (if not player:isInVehicle() then). This is probably to prevent players from starting work while in a vehicle. It then loops through a list of "MarkersCarpintero". These markers might represent locations or areas in the game world where the player can work as a "Carpintero" (carpenter). For each marker, the script checks if the player is within the range of the marker (if player:isWithinMarker(marker) then). If the player is within the marker, it checks if the player's current job is "Carpintero" (if mjob == "Carpintero" then). If the player's current job is "Carpintero," the script checks if the player already has the job ("Carpintero") as data (if currentJob == "Carpintero" then). If yes, it means the player is already working as a carpenter, and it displays an output message telling the player that they are already working there. If the player does not have the job of "Carpintero," it checks if the player has no job at all (if currentJob == "" then). If the player has no job, it assigns the job "Carpintero" to the player as data (player:setData("Roleplay:trabajo", "Carpintero")) and updates the marker's data to indicate it's a carpenter job marker (marker:setData("MarkerJob", "Carpintero")). If the player has a job other than "Carpintero," it displays an output message telling the player what their current job is. The script also has some removeElementData lines to remove any previous job-related data ("objeto" and "silla") from the player, probably to avoid conflicts or errors when assigning a new job. In summary, the script allows players to work as a carpenter if they are near a carpenter job marker and meet the specified conditions. If they are already working as a carpenter, it tells them they are already working there. If they have a different job, it informs them of their current job. It's important to note that this script only handles the "trabajar" command and the carpenter job. Depending on the entire game server setup, there might be other commands and jobs implemented separately. Also, it's crucial to ensure that the variables MarkersCarpintero and the functions like player:isWithinMarker() and player:setData() are correctly defined and implemented elsewhere in the script or resource. If they are not defined or implemented correctly, the script might not work as expected.
    1 point
  4. Hi from Russia. This trouble has solved 07 March 2023. We go to the folder with GTA: SA, look for the enbseries folder, copy the enbhelper.dll file from there. Open the folder "C:\ProgramData\MTA San Andreas All\1.5\GTA San Andreas" for MTA 1.5.9 or "C:\ProgramData\MTA San Andreas All\1.6\GTA San Andreas" for MTA 1.6. There we create the enbseries folder and shove the previously copied enbhelper.dll file there. IMPORTANT! Don't confuse ProgramData and Program Files. After that, time, weather and other data from the game will be able to be correctly transmitted to the ENB engine. What is reported to us in detail by the Statistics section on the left side of the screen.
    1 point
×
×
  • Create New...