-
Posts
1,546 -
Joined
-
Last visited
Everything posted by Dimos7
-
you want the vehicle light be lower close to road?
-
that is vehicle lights so what about them ? if you want the function for turn off etc setVehicleOverrideLights
-
what do you mean i don't understand you want change the color of lights ?
-
first you can't put client and server functions together lesson 1 people
-
what its the problem any error or warning from debugscript also please post all code related with that part of script not just few code oh i didn't see you want to not apear your name yes its possible for i,v in ipairs (getElementsByType("player")) do if getPlayerName(v) ~= getPlayerName(localPlayer) then guiGridListSetItemText(GUIEditor.gridlist[1], guiGridListAddRow(GUIEditor.gridlist[1]), 1, string.gsub(getPlayerName(v), "#%x%x%x%x%x%x", ""), false, true) end end
-
for i,v in ipairs (getElementsByType("player")) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, string.gsub(getPlayerName(v), "#%x%x%x%x%x%x", ""), false, true) guiGridListSetItemData(GUIEditor.gridlist[1], row, 1, getPlayerName(v)) end
-
function getPlayersTrainSpeed () if ( isPedInVehicle ( localPlayer ) ) then local veh = getPedOccupiedVehicle ( localPlayer ) if ( getVehicleType ( veh ) == "Train" ) then local speed = getTrainSpeed ( veh ) outputChatBox ( "Viteza ta: " .. speed, 255, 0, 0 ) setTrainDerailable(tren, false) outputChatBox("Test.", 255, 255, 0) warpPedIntoVehicle(localPlayer , tren) setTrainSpeed(tren, 1) else end else outputChatBox ( "You must be in a train to use this command.", localPlayer , 255, 0, 0 ) end end addEventHandler ( "onClientRender", root, getPlayersTrainSpeed )
-
yes because you have wrong you can't have two = for that also try mine
-
what errors [9] = { vehicles = { { 538, "Tren" }, }, vehiclesColor = { 6, 6, 6, 6 }, local myTrain = getPedOccupiedVehicle(source) setTrainDerailable(myTrain, false), executeCommandHandler("speed", source), setTrainSpeed(myTrain, 1), spawnLocation = { 2864.8310546875, 1291.5625, 10.8203125, 356, 9 },
-
in that code mytrain no t seems be defind
-
setTrainSpeed getTrainSpeed
-
yes after you need to remove the remain time with the current time so if have give 10 hours local time= getRealTime() local timestamp = time.timestamp local vhours = executeSQLQuery("Select hours from vip WHERE account =?", getAccountName(getPlayerAccount(target))) if tonumber(vHours) > 0 then vhours - timestamp else setElementData(target, "VIP", "NO") end
-
for example if you want 10 h someone have vip you can have it like this local time = getRealTime() local timestamp = time.timestamp timestamp+10*3600 ofc you put that when you add them to vip
-
well you can use local time = getRealTime() local timestamp = time.timestamp or getTickCount() setTime
-
the player is not defind in that script so its nil
-
setPedStat the function you need is that
- 12 replies
-
- weapon flags
- weapon handling
-
(and 1 more)
Tagged with:
-
createWeapon engineLoadTXD engineLoadDFF engineImportTXD engineReplaceModel
-
they are create weapons and have shades or different models mod
-
addCommandHandler("sendmoney",function(player,cmd,sendToName,money) money = tonumber(money) and math.floor(tonumber(money)) or nil if not (sendToName) or not (money) then outputChatBox(syntax.." /" .. cmd .. " [Player] [Amount]",player,255,0,0,true) else local targetPlayer = getPlayerFromName (sendtoName) local sourcename = getPlayerName (source) if targetPlayer then if (targetPlayer==player) then outputChatBox(" You cant give money to yourself.",player,255,0,0,true) elseif money <= 0 then outputChatBox(" Minimum ammount is 0.",player,255,0,0,true) elseif getPlayerMoney(player) >= money then takePlayerMoney(player,money) givePlayerMoney(targetPlayer,money) outputChatBox ( "You gave " .. targetPlayer .. " " .. money .. "$", source, 0, 255, 0, true) -- LINE outputChatBox ( "" .. sourcename .. "gave you " .. money .. "$", targetPlayer, 0, 255, 0, true ) -- LINE else outputChatBox(" You dont have enough money.",player,177,9,45,true) end end end end)