Jump to content

Anubhav

Members
  • Posts

    2,277
  • Joined

  • Last visited

Posts posted by Anubhav

  1. addCommandHandler("checkplayervehicle",
        function(source, cmd, target)
            if not (target) then
                outputChatBox("/checkplayervehicle [Player]")
                return false 
            end
            local target, targetName = exports["serverCore"]:findPlayer(source,target) 
    
            if target then    
                local targetAccount = getAccountName(getPlayerAccount(target))        
                local playercar1 = executeSQLQuery("SELECT Model FROM vehicleSlot1 WHERE PlayerName = ?",targetAccount)
                if #playercar1 > 1 then
                    outputChatBox(getVehicleNameFromModel(playercar2[1].Model),source)
                else
                    outputChatBox("slot 1 empty",source)
                end
                
                local playercar2 = executeSQLQuery("SELECT Model FROM vehicleSlot2 WHERE PlayerName = ?",targetAccount)
                if #playercar2 > 1 then
                    outputChatBox(getVehicleNameFromModel(playercar2[1].Model),source)
                else
                    outputChatBox("slot 2 empty",source)
                end
            end
        end
    )

     

  2. 19 hours ago, TheMOG said:

    its like smaller than original.

    Is there any way to make it like the same , but fit all resolution?

    For every lower height, try to increase the Y by some value to have the same size.

    It will have same size, and it should fit. You have to find the some value tho. 

  3. I assume drawing the image while the person in aiming sniper through isPedAiming (useful function), and then adding a picture which has the same diameter circle should do. You could add some frames in it to make it look more better

    • Thanks 1
  4. On 9/10/2017 at 00:54, Dimos7 said:
    
    local conenct = dbConnect("MYSQL", "dbname=mta_test;host=127.0.0.1", "root")
    local query = dbExec(connect, "INSERT INTO users") or dbQuery(connect, "SELECT * FROM  users")
    tostring 
    local result = dbPoll(query, 500)
    

     

    Very hard to give proper answers isn't it?

    Lol. The syntax for INSERT is incomplete and wrong because it is incomplete.

    And by the way you do not poll dxExecs.....

     

    Anyways, there is a good tutorial on this. 

    Go there and check the first post with db functions.  

     

     

  5. function katana(attacker, weapon, bodypart, loss)
    	if getElementData(attacker, "zombie", true) then
        	if getPedWeapon(attacker) == 8 then
            	setElementHealth(source, getElementHealth(source) - 40)
        	end
    	end
    end
    addEventHandler("onPlayerDamage", getRootElement(), katana)

     

  6. This week, on my local server, I have not been able to play on it properly.

    Resources do not download.

    <httpserver>1</httpserver> is set to 1

    <httpdownloadurl></httpdownloadurl> is empty

    Pictures:

     

  7. For connection forum profile picture to ingame profile picture:

    Using PHP SDK:

    Use PHP SDK to call a function which sends it the link of the image to use "fetchRemote" from. And update it.

    • Like 1
  8. xRaM isn't even a scripter.

    He contacted my friend on Skype, who further contacted me.

    He asked me to get RPG gamemodes for him.

    I simply told no.

    He told me plese help am beginner in Lua

    Now beginners making RPG modes while asking.. well ok

×
×
  • Create New...