Jump to content

Evil#

Members
  • Posts

    95
  • Joined

  • Last visited

Posts posted by Evil#

  1. shows this

      
    [2015-08-13 02:40:31] WARNING: Script 'turfsystem\serverTurf.lua' is not encoded in UTF-8.  Loading as ANSI... 
    [2015-08-13 02:40:31] INFO: Sistema de turf by Sasuke* ha iniciado correctamente! 
    [2015-08-13 02:40:31] turfsystem restarted successfully 
      
    

    This script works fine for me, just when I enter the turf I made, doesn't work. Other turfs work.

    It has two tables turfPos and AreaPos, TurfPos has more elements but AreaPos has 4 elements in it. Someone told me to take your position where the colshape ends, but the position is only x, y, z and areapos(radararea) have 4 elements Also it created a long turf when I tried. I am using resource 'zoner' to add turfPos but I still can't understand what to add in AreaPos. Someone told me that AreaPos is the radar area, but I still can't understand what to add in it.

    See what I created..

      
    local turfPos = { 
    { 1139.573, -1276.031, 0, 125.443, 141.761, 12.165}} 
      
    local areaPos = { 
    { 1265.01611, -1134.26978, 23.65625, 1000 }} 
      
    

  2. Hi guys, there's a bug while i was making a script and i can't fix it so please help

      
    local marker = createMarker(2850.94849, -1532.66565, 11.09907, "corona", 2, 255, 0, 0, 255) 
    local hp = getElementHealth(player) 
    function HealthHandler() 
      bindKey (source,"X","down", 
        function(player,key,state) 
        if hp >= 100 then 
        outputChatBox("You already have 100 health", player, 255, 0, 0) 
        else 
        if getPlayerMoney(player) >= 30 then 
        if hp >= 100 then hp = 100 end  
        setElementHealth(localPlayer, hp+100) 
        setElementHealth(player, 50) 
        takePlayerMoney(player, 30) 
        else 
        outputChatBox("You don't have enough money to take Health, $30", player, 255, 0, 0) 
        end 
    end 
      ) 
    end 
    end 
    end 
    end 
    addEventHandler ("onMarkerHit", marker, HealthHandler) 
      
    function chatBoxHandler(player) 
    outputChatBox("Press X to take Health, $30", player, 0, 255, 0) 
    end 
    addEventHandler("onMarkerHit", marker, chatBoxHandler) 
      
    

  3. Not Working, I've also added a button

      
    addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
    window = guiCreateWindow(266, 121, 184, 287, "Skin Panel", false) 
    guiWindowSetSizable(window, false) 
    gridlist = guiCreateGridList(9, 20, 165, 257, false, window) 
    column = guiGridListAddColumn(gridlist, "Skins", 0.9) 
    for i = 1, 1 do 
    guiGridListAddRow(window) 
    end 
    guiGridListSetItemText(gridlist, 0, 1, "Punk", false, false) 
    button = guiCreateButton(23, 205, 121, 42, "SELECT", false, gridlist) 
    guiSetVisible(window, false) 
    end 
    ) 
      
    function showTheGui() 
    local v = guiGetVisible( window ) 
    guiSetVisible(window, not v ) 
    showCursor(v) 
    end 
    addCommandHandler("opengui", showTheGui) 
    bindKey("F1", "down", showTheGui) 
      
    function setTheSkin() 
    if ( source == button ) then 
        local row = guiGridListGetSelectedItem( gridlist ) 
        local name = guiGridListGetItemText( window, row, column) 
        if name == "Punk" then 
            setElementModel(localPlayer, 181) 
    end 
    end 
    end 
    addEventHandler("onClientGUIClick", root, setTheSkin) 
      
    

  4. Hi there, i was trying to make a script in which i click grid list item "Punk" and it will set my skin to 181 but i could not so please help me.

    Another help that i need is the window is enabled when the resource starts and the bindkey is not working.

      
    window = guiCreateWindow(266, 121, 184, 287, "Skin Panel", false) 
    guiWindowSetSizable(window, false) 
    bindKey( "F1", "down", guiSetVisible(window)) 
    showCursor(true) 
    gridlist = guiCreateGridList(9, 20, 165, 257, false, window) 
    guiGridListAddColumn(gridlist, "Skins", 0.9) 
    guiGridListAddRow(gridlist) 
    guiGridListSetItemText(gridlist, 0, 1, "Punk", false, false) 
      
    

×
×
  • Create New...