Tony Brand

Members
  • Content Count

    35
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Tony Brand

  • Rank
    Rat

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi,i want to make a gui stats panel this is the code made by GUIEditor resource! --[[------------------------------------------------- Notes: > This code is using a relative image filepath. This will only work as long as the location it is from always exists, and the resource it is part of is running. To ensure it does not break, it is highly encouraged to move images into your local resource and reference them there. --]]------------------------------------------------- GUIEditor = { tab = {}, staticimage = {}, tabpanel = {}, label = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(124, 77, 1135, 638, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 9, 1107, 619, "Data/Images/back.png", false, GUIEditor.window[1]) GUIEditor.tabpanel[1] = guiCreateTabPanel(0, 11, 1107, 608, false, GUIEditor.staticimage[1]) GUIEditor.tab[1] = guiCreateTab("Stats", GUIEditor.tabpanel[1]) GUIEditor.label[1] = guiCreateLabel(34, 76, 222, 31, "Name: ..getPlayerName(localPlayer)", false, GUIEditor.tab[1]) guiLabelSetColor(GUIEditor.label[1], 254, 0, 0) GUIEditor.label[2] = guiCreateLabel(34, 135, 222, 35, "Level", false, GUIEditor.tab[1]) end ) for Second Label called Level i need to get player level with getElementData and put it after Level: ,any help plz?
  2. not working!! i solved Engine problem with this code: function engine(player) local veh = getPedOccupiedVehicle (player) setVehicleEngineState ( veh, false ) end addEventHandler("onVehicleEnter", getRootElement(), engine) but i don't have any idea about car locks!it is so crazy that a player can leave a vehicle while it is locked and it doesn't get unlocked!
  3. not working!without any error or warning
  4. it is client side then?
  5. hi, i want to make a system that when player leaves a vehicle, engine turns off and if Vehicle was locked, it gets Unlocked! so i made this in Server Side: addEventHandler ("onPlayerVehicleExit", getRootElement(), function(theVehicle, leftSeat, jackerPlayer) if leftSeat == 0 and not jackerPlayer then setVehicleEngineState(theVehicle, false ) setVehicleLocked(theVehicle, false) end end) but it doesn't work(without any warning or error) and Vehicle is still locked and Engine is on when you enter the vehicle! do you know what i must do? tnx
  6. Hi my meta is this: <meta> <script src="client.lua" type="client" /> <script src="server.lua" type="server" /> <file src="Data/filename.png" /> </meta> and this is my client side code: local seconds = getTickCount() / 1000 local angle = math.sin(seconds) * 80 dxDrawImage ( screenWidth/2 - 50, 0, 100, 240, 'filename.png', angle, 0, -120 ) but it says Error Loading image @ 'dxDrawImage' [filename.png] in Debug Box! where i did wrong? it is just a simple wiki example that i used
  7. Tony Brand

    Problem with setTimer

    well i placed it with several times test, but 2 questions 1-is it any resource or misc that helps me to get sw and sh point of screen? 2- you used local sw, sh = guiGetScreenSize() so this will place Progress bar in a place i choosed for all players with any Resolution right? thank you @Pirulax & @SaNor
  8. Tony Brand

    Problem with setTimer

    ERROR: client.lua:10: attempt to compare nil with number well i fixed it, in line 10 reload must change to RELOAD_TIME Thanks, and can you tell me how i can get x y z of screen? cause i need to change progress bar place ❤️
  9. Tony Brand

    Problem with setTimer

    hi, i made a function that lets players jump with their car but i need to add a cooldown for it cause i don't want them to go helping nasa with their cars,just a simple jump with 3 seconds cooldown before next jump,so they can't jump to high function jump() local vehicle = getPedOccupiedVehicle(localPlayer) if(vehicle)then local sx, sy, sz = getElementVelocity(vehicle) setElementVelocity(vehicle, sx, sy, sz+0.33) end end and if you know how i can make a gui thing called cooldown bar(when this gets filled player knows that his cooldown gets ended and he is abale to jump again) plz tell, tnx
  10. Tony Brand

    MySql ROWS

    i fixed it
  11. Tony Brand

    MySql ROWS

    Hi, i made a SQL Resource with 354 datas, now i added a new Column to it and i want to make a cmd that gets value from PRICE column and sets it in to the OPRICE column!(i want to do it with a cmd instead of changing every line OPRICE value with my hands) addCommandHandler("sqlfix", function(price, oprice) local query = dbQuery(handler, "INSERT INTO houses (OPRICE) values ('PRICE')") local result, numrows = dbPoll(query, dbpTime) if(result) then outputServerLog("Mission Done!") end end) upper code, won't work, please help, tnx
  12. Tony Brand

    Help with RealTime

    i need to use an event that checks time every second ,then if find 1:00 2:00 3:00 4:00 5:00 ... 23:00 00:00 for time,give a payday and start a hour timer,may better help?