-
Posts
857 -
Joined
-
Last visited
Everything posted by Blaawee
-
i can't see any change you remove else ?
-
i'm trying to warp ped into Vehicle when he spawn a Vehicle i'll use it with the freeroam but i can't get it function giveMeVehicles(vehicles) if type(vehicles) == 'number' then vehicles = { vehicles } end local px, py, pz, prot local radius = 3 local playerVehicle = getPedOccupiedVehicle(source) if playerVehicle and isElement(playerVehicle) then px, py, pz = getElementPosition(playerVehicle) prot, prot, prot = getVehicleRotation(playerVehicle) else px, py, pz = getElementPosition(source) prot = getPedRotation(source) end local offsetRot = math.rad(prot) local vx = px + radius * math.cos(offsetRot) local vy = py + radius * math.sin(offsetRot) local vz = pz + 2 local vrot = prot local vehicleList = g_PlayerData[source].vehicles local vehicle if ( not vehicles ) then return end for i,vehID in ipairs(vehicles) do if vehID < 400 or vehID > 611 then errMsg(vehID ..' is incorrect vehicle model', source) elseif not table.find(getOption('vehicles.disallowed'), vehID) then if #vehicleList >= getOption('vehicles.maxperplayer') then unloadVehicle(vehicleList[1]) end vehicle = createVehicle(vehID, vx, vy, vz, 0, 0, vrot) if (not isElement(vehicle)) then return end setElementInterior(vehicle, getElementInterior(source)) setElementDimension(vehicle, getElementDimension(source)) table.insert(vehicleList, vehicle) g_VehicleData[vehicle] = { creator = source, timers = {} } warpPedIntoVehicle(source, vehicle) elseif not g_Trailers[vehID] then if getOption('vehicles.idleexplode') then g_VehicleData[vehicle].timers.fire = setTimer(commitArsonOnVehicle, getOption('vehicles.maxidletime'), 1, vehicle) end g_VehicleData[vehicle].timers.destroy = setTimer(unloadVehicle, getOption('vehicles.maxidletime') + (getOption('vehicles.idleexplode') and 10000 or 0), 1, vehicle) end vx = vx + 4 vz = vz + 4 else errMsg(getVehicleNameFromModel(vehID):gsub('y$', 'ie') .. 's are not allowed', source) end end end
-
solid when i try to setElement to : setElementData(getControl(wndSkin, "set"), "tooltip-text", "اختيآر", false) the tooltip not shown
-
you the man dude that's work thx allot
-
yup , not work i setElementData onClientResourceStart
-
but the element is button
-
hello again , i'm trying to use tooltips with the freeroam gamemode and i don't know how to use it i tried to use with setElementData , but the freeroam syntax is diffrent so i tried like this : {'btn', id='kill', onclick=killLocalPlayer}, setElementData("kill", "tooltip-text", "انتحآر", false) but not working is there any way to do it
-
you can set it with random color
-
try this : EDIT chat_range = 100 addEventHandler("onPlayerJoin",getRootElement(), function () bindKey(source,"u","down","chatbox","Local") end) addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), function () for index, player in pairs(getElementsByType("player")) do bindKey(player,"u","down","chatbox","Local") end end) function isPlayerInRangeOfPoint( player, x, y, z, range) local px,py,pz = getElementPosition( player ) return ((x-px)^2+(y-py)^2+(z-pz)^2)^0.5 <= range end function onChat(player,_,...) local px,py,pz = getElementPosition(player) local msg = table.concat({...}, " ") local nick = getPlayerName( player ) local r,g,b = getPlayerNametagColor ( player ) for _,v in ipairs(getElementsByType("player")) do if isPlayerInRangeOfPoint(v,px,py,pz,chat_range) then outputChatBox("(Local)"..nick..": #ffffff"..msg,v,r,g,b,true) end end end addCommandHandler("Local",onChat)
-
thx solid that great work thx allot
-
it's work fine but i can't change my name again
-
that's to fast solidsnake but when i type this command : /name بلاوي it say's : Incorrect syntax, Correct: /name and my name will be like this : [.. name ..] : hi i want convert it to arabic name
-
hello guys , i'm trying to change my name to arabic name in the chat this is what i'v been do : function changename( thePlayer, command, name ) if ( name ) then local newPlayerNick = " .. name .. " local oldNick = getElementData( thePlayer, "ar.name" ) if ( oldNick == false ) then setElementData ( thePlayer, "ar.name", newPlayerNick ) outputChatBox ("Your new nickname has been set to" .. getElementData( thePlayer, "ar.name", newPlayerNick ), thePlayer,0,255,0,true ) else outputChatBox ("Incorrect syntax, Correct: /name ", thePlayer,255,0,0,true ) end end end addCommandHandler( "name", changename ) function chat( msg, type ) if type == 0 and getElementData( thePlayer, "ar.name", newPlayerNick ) ~= false then cancelEvent() outputChatBox("[ " .. newPlayerNick .. " ] : " .. msg, getRootElement(), 255, 255, 255, true) end end addEventHandler("onPlayerChat", root, chat ) is there any way to make it
-
elseif column.name == "Home" then dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) else
-
put an else after the code2
-
... you edit your post ><
-
i cant tell you where cuz you have diffrent scoreboard versoin
-
that's wrong you have to add this line in the "dxscoreboard_client" : elseif column.name == "Home" then dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) if you show the full code will be better
-
are you testing it with a local server ? if you are it will not work i don't think you will edit the " dxscoreboard_exports " you should edit the " dxscoreboard_client " show full code
-
add this on line 705 (maybe you need to ad somewhere els bk your scoreboard is difrent)
-
EDIT : mybe this will help you Make sure to edit the scoreboard
-
i think it's use sql function executeSQLCreateTable("recordsDrift","pista TEXT, nombre TEXT, score INTEGER") and the "nombre TEXT" it add the players names
-
EDIT : mybe this will help you
-
is that what you did ??
-
hi guys i have this code addEventHandler ( "onPlayerChat", root, function ( msg, type , name) if messageType == 0 then cancelEvent () name = getPlayerName ( source ) outputChatBox ( "#FF0000[The Best] #ffffff= #ffffff[ " .. name .. "#ffffff ]: " .. msg, getRootElement(), 255, 255, 255, true ) end end) i'm using the drft resource , i want get the best drifter name when he chat
