FiGo
-
Posts
100 -
Joined
-
Last visited
Posts posted by FiGo
-
-
hi guys
so i am using dx to create my police employment system and my window that i want to do is adding police skins to my window
so i finished every part except for this what should i replace this to
local Data = guiGridListGetItemData( Skins_grid, guiGridListGetSelectedItem ( Skins_grid ), 1 )triggerServerEvent( 'ChangePoliceSkin', localPlayer, Data ) -
-
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
-
-
-
-
-
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
-
-
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
-
-
-
-
-
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) -
-
-
-
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
-
Like what info
It’s a rpg server has alot of stuff
-
I am selling cpk scripts rpg server for 100 dollars
-
-
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)
-
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]
what can i replace this to
in Scripting
Posted
anyone