Jump to content

FiGo

Members
  • Posts

    98
  • Joined

  • Last visited

Everything posted by FiGo

  1. FiGo

    help me

    i want to make in the timer that when a specified car is hit it auto fix by 5 % health until it reaches the 100 %
  2. FiGo

    help me

    timer = {} function incHp(veh) timer[veh] = setTimer(setElementHealth(veh), 10, 10, veh, getElementHealth(veh)+5) end addEventHandler("onVehicleEnter", root, incHp) function stopincHP(veh) if(isTimer(timer[veh] ))then killTimer(timer[veh]) end end addEventHandler("onPlayerVehicleExit", root, stopincHP) what's wrong with that function
  3. FiGo

    help me

    ty bro for helping me it worked good if i want to add a weapon to my car what can i use
  4. FiGo

    help me

    nvm i fixed that error but still doesn't work
  5. FiGo

    help me

    [2021-04-13 15:42:41] ERROR: Loading script failed: CITvehicles\server.lua:26: 'then' expected near ')'
  6. FiGo

    help me

    function playerPressedKey(button, press) if (press) then -- Only output when they press it down --outputChatBox("You pressed the "..button.." key!") end end addEventHandler("onClientKey", root, playerPressedKey) addEventHandler( "onClientKey", root, function(button,press) if button == "1" then triggerServerEvent("sportmod", localPlayer) elseif button == "2" then triggerServerEvent("business", localPlayer) return true end return false end ) function setVehicleVelocity(player, command) local veh = getPedOccupiedVehicle(player) if (not veh or veh == nil or getPedOccupiedVehicleSeat(player) ~= 0 ) then return end if (command == "sportmod") then setVehicleHandling(veh, "maxVelocity", 320) setVehicleHandling(veh, "engineAcceleration", 20) setVehicleHandling(veh, "driveType", "awd") setVehicleHandling(veh, "handlingFlags", 0x1008000) outputChatBox("Sport Mod Enabled", player, 255, 255, 0, true) elseif (command == "business") then setVehicleHandling(veh, "maxVelocity", 180) setVehicleHandling(veh, "engineAcceleration", 20) setVehicleHandling(veh, "driveType", "awd") setVehicleHandling(veh, "handlingFlags", 0x1008000) outputChatBox("Business Mod Enabled", player, 255, 255, 0, true) end end addCommandHandler("sportmod", setVehicleVelocity) addCommandHandler("business", setVehicleVelocity) addEvent("sportmod", true) addEvent("business", true) addEventHandel("sportmod", root, setVehicleVelocity(sportmod)) addEventHandel("business", root, setVehicleVelocity(business)) server side
  7. FiGo

    help me

    but when i press 1 and 2 it doesn't work
  8. FiGo

    help me

    function playerPressedKey(button, press) if (press) then -- Only output when they press it down --outputChatBox("You pressed the "..button.." key!") end end addEventHandler("onClientKey", root, playerPressedKey) addEventHandler( "onClientKey", root, function(button,press) if button == "1" then triggerServerEvent("sportmod", localPlayer) elseif button == "2" then triggerServerEvent("business", localPlayer) return true end return false end ) it says [2021-04-13 14:31:03] ERROR: Client (FiGo) triggered serverside event sportmod, but event is not added serverside anyone please
  9. FiGo

    help me

    can't use please make it and thanks
  10. FiGo

    help me

    when i press 1 it auto changed to sport mod when i press 2 it changes to business
  11. FiGo

    help me

    okay last thing can't i make the addCommandHandler with numbers
  12. FiGo

    help me

    can't u type a function
  13. FiGo

    help me

    addCommandHandler("gethandling", function(thePlayer) local veh = getPedOccupiedVehicle(thePlayer) local handling = getVehicleHandling(veh) outputChatBox("maxVelocity is "..handling.maxVelocity, thePlayer, 255, 255, 255, true) end) -- Bullet -- (250km/h) function setVelocity(player, command) local veh = getPedOccuipedVehicle(player) if (not veh or veh == nil or getPedOccuipedVehicleSeat(player) ~= 0 ) then return end if (command=="1") then setVehicleHandling(veh, "maxVelocity", 230) outputChatBox("Sport Mod Enabled", veh, 255, 255, 0, true) elseif (command=="2") then setVehicleHandling(veh, "maxVelocity", 180) outputChatBox("Business Mod Enabled", veh, 255, 255, 0, true) end end addCommandHandler("1", setVelocity) addCommandHandler("2", setVelocity)
  14. FiGo

    help me

    okay i checked the max velocity and its 230 and what is next
  15. FiGo

    help me

    when i press 1 it should make the speed of the car to 320 and when i press 2 it should make the speed 180 but nothing work
  16. FiGo

    help me

    no errors
  17. FiGo

    help me

    function setVelocity(player, command) local veh = getPedOccuipedVehicle(player) if (not veh or veh == nil or getPedOccuipedVehicleSeat(player) ~= 0 ) then return end if (command=="1") then setVehicleHandling(veh, "maxVelocity", 320) outputChatBox("Sport Mod Enabled", veh, 255, 255, 0, true) elseif (command=="2") then setVehicleHandling(veh, "maxVelocity", 180) outputChatBox("Business Mod Enabled", veh, 255, 255, 0, true) end end addCommandHandler("1", setVelocity) addCommandHandler("2", setVelocity) why it doesn't work
  18. Like what info It’s a rpg server has alot of stuff
  19. I am selling cpk scripts rpg server for 100 dollars
  20. FiGo

    Help

    addEvent ( "AEupdatesinfo.fillUpdatesMemo", true ) addEventHandler ( "AEupdatesinfo.fillUpdatesMemo", root,function (text) local updatesInfo = string.gsub(text, "\r", "") guiSetText(updatesMemo, tostring(text)) end) error at line 279 bad argument #1 to 'gsub' (string expected got nil)
  21. I need members to my server its cnr server and its called AE mtasa://91.134.254.76:22003 here is some updates of it : Thursday 10th December 2020 Added /spacesuit to wear the space suit while being space miner (FiGo) - Added waste sweeper job (FiGo) - Added taxi job (FiGo) - Added sweeper job (FiGo) - Added when buying nitrous from f7 press lctrl to enable it (FiGo) - Added pizza boy delievery job (FiGo) - Added armed robbery and store robbery (FiGo) - Added pilot job (FiGo) - Updated equipments panel (FiGo) Tuesday 8th December 2020 - Added new radar and new F11 style (FiGo) - Added names in F11 (FiGo) Sunday 6th December 2020 - Added ignore panel /ignore or x => ignore a player (FiGo) - Added /day /night /foggy /rainny (FiGo) - Ironman added as staff L5 (7FreT - FiGo) Thursday 3rd December 2020 - Increased advanced hummer price (FiGo) - Added new stuffs in advanced hummer (FiGo) Wednesday 2nd December 2020 - The fenugreek has been added and provided with a good object that can be played with (7FreT) - The appearance of LSPD has changed (7FreT) Tuesday 1st December 2020 - Some barriers and fences were added throughout the game (7FreT) - Police siren was added (7FreT) - A light has been added at the airport with a cam when you get on the plane, and the airport lights will also appear (7FreT) - A card that pays all limits is added in LV, SF and LS (7FreT) - Army has been added at the border of LS (7FreT) - The sidewalk has changed in all streets (7FreT) - Cinema has been added in the SF and LS (7FreT) - Added in settings that you can auto pay while being in jail (FiGo) - Added /payjailfine to fine while being in jail or /fine to fine for 1 star (FiGo) - Added new news reporter job (FiGo) - Added that anyone can marry without asking from staff or so (FiGo) - Added lottery system (FiGo) - Added jfm (FiGo) - Added hit system for donators (FiGo) - Added hijack system (FiGo) - Added glue system (FiGo) - Added eject system to eject all players (FiGo) - Added Walk Style at gym (FiGo) - Fixed not being able to open the transport panel while being donator (FiGo) Monday 30th November 2020 - Reupdated accounts system security (FiGo) - Added anti rpg spam (FiGo) - Players can sign in with there accounts i didn't delete them (FiGo) * Shoutbox Refresh History Smileys Styling Nase: Hi Delete Today at 07:29:28 AM IronMan: hi Delete December 09, 2020, 08:31:04 PM * Top Boards board Event Management Topics: 8 | Posts: 11 board News and Updates Topics: 7 | Posts: 9 board Guides Topics: 8 | Posts: 9 board Criminal Boss Application board Topics: 4 | Posts: 8 board Land Development Topics: 5 | Posts: 8 * Recent Posts Re: ✠ 7FreT ✠ Introduction ✠ by Nase New [Today at 05:36:13 PM] ✠ 7FreT ✠ Introduction ✠ by 7FreT New [Today at 03:16:25 PM] Re: Criminal Boss Questions/Answers by Nase New [Today at 03:15:32 PM] State Officials Office | Q&A by 7FreT New [Today at 02:41:15 PM] Police Guidebook by 7FreT New [Today at 02:39:04 PM]
  22. I need mta memebers active to come play at my server its name is AE its cnr server
  23. FiGo

    Help

    function addNotification(accname, message) local accName = accname local account = getAccount(accname) local getaa = getAccountData(account, "unreadNotifications") if getaa then setAccountData(account, "unreadNotifications", getaa + 1) else setAccountData(account, "unreadNotifications", 1) end local date, time = getTimeDate() local final = "["..date.. " - "..time.."]" if (not fileExists("notifs/"..accName..".log")) then log[accname] = fileCreate("notifs/"..accName..".log") else log[accname] = fileOpen("notifs/"..accName..".log") end if (not log[accname]) then return end if (not fileExists("notifs/"..accName..".log")) then return end if (fileGetSize(log[accname]) == 0) then fileWrite(log[accname], final.." "..message) else fileSetPos(log[accname], 0) theLine = fileRead(log[accname], 9999999) fileWrite(log[accname], "\n"..final.." "..message) end fileClose(log[accname]) end
×
×
  • Create New...