CodX

Members
  • Content count

    60
  • Joined

  • Last visited

Community Reputation

4 Neutral

About CodX

  • Rank
    Snitch

Details

  • Gang
    CodX
  • Location
    Bucuresti
  • Occupation
    IT
  • Interests
    IT
  1. Ask ID

    Wow, i'm so stupid.. Now it work ! Thanks for help !
  2. Ask ID

    Hello ! I've made this script: function buletin(thePlayer, commandName) if commandName == "buletin" then local nume_jucator = getPlayerName(thePlayer):gsub("_", " ") triggerEvent('sendAme', thePlayer, "duce mana dreapta catre buzunarul drept urmand s-o bage in el, apuca ce e acolo si scoate.") triggerEvent('sendAdo', thePlayer, "Se poate observa ca a scos un portofel.") triggerEvent('sendAme', thePlayer, "il deschide.") triggerEvent('sendAdo', thePlayer, "Se poate observa un buletin si alte acte.") triggerEvent('sendAme', thePlayer, "duce mana stanga catre buletin urmand sa-l scoata si sa-l citeasca, apoi baga buletinul inapoi, inchide portofelul si-l baga in buzunar.") outputChatBox("#C0C0C0San Andreas #66B2FFSan #FFFF33Andr#FF0000eas #C0C0C0San Andreas", thePlayer, 255, 255, 255, true) outputChatBox(" ", thePlayer, 0, 0, 0) outputChatBox("#FFFF66Nume si Prenume:#FFFFFF "..nume_jucator, thePlayer, 255, 255, 255, true) outputChatBox("#FFFF66Domiciliu:#FFFFFF Los Santos", thePlayer, 255, 255, 255, true) outputChatBox("#FFFF66Data Nasterii:#FFFFFF "..exports.global:getPlayerDoB(thePlayer), thePlayer, 255, 255, 255, true) end end addCommandHandler ("buletin", buletin) function askid(thePlayer, commandName, targetPlayer) if commandName == "askid" then local nume_jucator = getPlayerName(thePlayer):gsub("_", " ") if not (targetPlayer) then outputChatBox ("Comanda: /"..commandName.." [ID Jucator]", thePlayer, 255, 255, 255) else local targetPlayer, tinta = exports.global:findPlayerByPartialNick(thePlayer, targerPlayer) outputChatBox("I-ai aratat buletinul lui "..tinta.. ".", thePlayer, 255, 178, 102) outputChatBox("Buletinul lui "..nume_jucator, tinta, 255, 178, 102) outputChatBox(" ", tinta, 0, 0, 0) outputChatBox("#C0C0C0San Andreas #66B2FFSan #FFFF33Andr#FF0000eas #C0C0C0San Andreas", targetPlayer, 255, 255, 255, true) outputChatBox(" ", targetPlayer, 0, 0, 0) outputChatBox("#FFFF66Nume si Prenume:#FFFFFF "..nume_jucator, targetPlayer, 255, 255, 255, true) outputChatBox("#FFFF66Domiciliu:#FFFFFF Los Santos", targetPlayer, 255, 255, 255, true) outputChatBox("#FFFF66Data Nasterii:#FFFFFF "..exports.global:getPlayerDoB(thePlayer), targetPlayer, 255, 255, 255, true) end end end addCommandHandler ("askid", askid) <meta> <script src="script.lua" type="server" /> </meta> When i type "/askid 3" or "/askid Vladus_Griffin", give me error and i don't know why. Error: ERROR: !buletin/script.lua:28: attempt to concatenate local 'tinta' (a nil value) Can you help me please ?
  3. GiveWeapon

    Meta: <meta> <script src="script.lua" type="server" /> </meta>
  4. GiveWeapon

    In map editor on "Full Test Mode" it work.
  5. GiveWeapon

    The gamemode is RolePlay but I do not think she's stuck.
  6. GiveWeapon

    So, when I execute the command he give me the weapon. minigun, but that weapon contains only one bullet and, from script, he need to give me 500 bullets.
  7. GiveWeapon

    Don't work, is the same, he give me only one bullet. He says: You have been given a 'Minigun'(500) by Vladus_Griffin. =================================================================================================================================== I change the script but is the same problem. function vreau (thePlayer, commandName, weaponID, ammo) if (exports.integration:isPlayerLeadAdmin(thePlayer) or exports.integration:isPlayerLeadScripter(thePlayer)) then outputChatBox ("Ai primit 1 minigun cu 500 gloante.", thePlayer, 255, 255 ,0) giveWeapon (thePlayer, 38, 500, true) end end addCommandHandler ("give", vreau)
  8. GiveWeapon

    Hello ! I try to make a script who give a minigun with 1000 ammo but when i execute the command he give me minigun if one ammo. I'm sorry for my english, i'm from Romanian and the text is the same. function vreau (thePlayer, commandName, weaponID, ammo) if (exports.integration:isPlayerLeadAdmin(thePlayer) or exports.integration:isPlayerLeadScripter(thePlayer)) then outputChatBox ("Ai primit 1 minigun cu 1000 de gloante.", source, 255, 255 ,0) giveWeapon (thePlayer, 38, 500) setWeaponAmmo (thePlayer, 38, 500) end end addCommandHandler ("give", vreau) Meta: <meta> <script src="script.lua" type="server" /> <script src="script.lua" type="client" /> </meta>
  9. Video on Register

    Don't work. local screenWidth, screenHeight = guiGetScreenSize() function webBrowserRender() dxDrawImage(0, 0, screenWidth, screenHeight, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true) end requestBrowserDomains({ "www.facebook.com" }, false) local facebookWasAccepted local webBrowser = createBrowser(screenWidth, screenHeight, false, false) addEventHandler("onClientBrowserCreated", browser, function () focusBrowser(source) end ) addEventHandler('onClientBrowserCreated',webBrowser, webBrowserCreated) addEventHandler("onClientBrowserWhitelistChange", root, function (newDomains) if not facebookWasAccepted then for i=1, #newDomains do if newDomains[i] == "www.facebook.com" then facebookWasAccepted = true break end end if facebookWasAccepted then loadBrowserURL(webBrowser,'https://www.facebook.com/iulian.macovei.904/videos/1932180010376910/') end end end) function webBrowserCreated () addEventHandler('onClientRender',root,webBrowserRender) if not isBrowserDomainBlocked("www.facebook.com") then loadBrowserURL(webBrowser,'https://www.facebook.com/iulian.macovei.904/videos/1932180010376910/') facebookWasAccepted = true end focusBrowser ( webBrowser ) focusBrowser ( nil ) end
  10. Video on Register

    I don't want to focus because the player can't login. I wan't that video to play in background, like a picture.
  11. Video on Register

    Don't work. Just sended me a messaje to allow facebook. I allowed that site and then he don't create website. Sorry for my english.
  12. Video on Register

    Ok Yes, work without login.
  13. Video on Register

    Don't work your code. Give me error: ERROR: account\login-panel\client.lua:82: attempt to index local 'newbrowser' (a nil value) This is: -- This is an example off of the wiki. I know browsers are a bit complicated. -- https://wiki.multitheftauto.com/wiki/CreateBrowser --In order to render the browser on the full screen, we need to know the dimensions. local sx,sy = guiGetScreenSize() --Let's create a new browser in local mode. We will not be able to load an external URL. local webBrowser = createBrowser(sx,sy,true,false) --This is the function to render the browser. function webBrowserRender() --Render the browser on the full size of the screen. dxDrawImage(0,0,sx,sy,webBrowser,0,0,0,tocolor(255,255,255,255),true) end --The event onClientBrowserCreated will be triggered, after the browser has been initialized. --After this event has been triggered, we will be able to load our URL and start drawing. addEventHandler('onClientBrowserCreated',webBrowser,function() --After the browser has been initialized, we can load our file. loadBrowserURL(webBrowser,'https://www.facebook.com/iulian.macovei.904/videos/1932180010376910/') --Now we can start to render the browser. addEventHandler('onClientRender',root,webBrowserRender) end)
  14. Video on Register

    Work, but video isn't rendered.
  15. Video on Register

    Isn;t good. I want to play the video in background.