Jump to content

yToPzz

Members
  • Posts

    39
  • Joined

  • Last visited

Everything posted by yToPzz

  1. yToPzz

    Animation

    I ended up finding out that the animation can't be played because it was blocked by the game but thanks anyway
  2. yToPzz

    Animation

    other animations with the same functions as this one play normally but this one doesn't want to play can someone tell me what's wrong? function sexomen (source) setElementPosition(source, 952.6279296875, -44.8916015625, 1001.8737792969) setElementInterior(source, 3) setElementRotation(source,0,0,0) setCameraTarget(source,source) setPedAnimation ( source,"sex", "sex_1_cum_p", -1, true, false, false ) end addEventHandler("onMarkerHit",markermen,sexomen)
  3. yToPzz

    WARNING, ERROR

    solved, but the player continues to enter the vehicle even though it is not in the ACL
  4. [2022-07-01 18:57:19] WARNING: VIP\acoes\acoes_s.lua:300: Bad argument @ 'getPlayerAccount' [Expected player or console at argument 1, got vehicle] [2022-07-01 18:57:19] WARNING: VIP\acoes\acoes_s.lua:301: Bad argument @ 'getAccountName' [Expected account at argument 1, got boolean] [2022-07-01 18:57:19] ERROR: VIP\acoes\acoes_s.lua:302: attempt to concatenate local 'accName' (a boolean value) addEventHandler ( "onVehicleStartEnter", root, function(player,seat) if getElementModel ( source ) == 409 and seat == 0 then local acc = getPlayerAccount ( source ) local accName = getAccountName (acc) if not (isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP Diamante" ) )) then cancelEvent() outputChatBox("O veículo "..getVehicleNameFromModel(409).." é exclusivo para jogadores VIPs",player,255,0,0,false) end end end )
  5. yToPzz

    ERROR

    the error occurs after joining or reconnecting to the server
  6. yToPzz

    ERROR

    ERROR: Server triggered clientside event onServerToggleRadio, but event is not added clientside Server-Side: triggerClientEvent(source, "onServerToggleRadio", root, true, g_VehicleList[veh].radioStation, veh, g_VehicleList[veh].volume) Client-Side: addEvent("onServerToggleRadio", true) addEventHandler("onServerToggleRadio", getLocalPlayer(), function(toggle, url, veh, volume) if not isElement(veh) then if radioSound[veh] and isElement(radioSound[veh].soundElement) then destroyElement(radioSound[veh].soundElement) radioSound[veh] = nil end return end
  7. yToPzz

    ERROR

    ERROR: mod\server\gui.lua:26: bad argument #1 to 'pairs' (table expected, got boolean) function syncObjects (player) if isPedInVehicle (player) then local vehicle = getPedOccupiedVehicle(player); for i, v in pairs (getVehicleOccupants(vehicle)) do ---- line 26 triggerLatentClientEvent (v, "tune.sync_objects", resourceRoot, getVehicleName (vehicle),getVehicleObjects(vehicle)); end end end
  8. yToPzz

    WARNING

    WARNING: admin\server\admin_server.lua:1106: Bad argument @ 'giveWeapon' [Expected weapon-type at argument 2, got number '19'] elseif ( action == "giveweapon" ) then mdata = getWeaponNameFromID ( data ) more = additional if ( giveWeapon ( player, data, additional, true ) ) then ---- Line error
  9. yToPzz

    WARNING

    -- //#Rainbow Car rainbow = {} function rainbowCar() for _, player in pairs(getElementsByType("player")) do if getElementData(player, "rainbowEnabled") then local vehicle = getPedOccupiedVehicle(player) if vehicle then if not rainbow[player] then rainbow[player] = 0 return end local r, g, b = getVehicleColor(vehicle, true) if rainbow[player] == 0 then if r < 250 then r = r + 3 if r > 255 then r = 250 end else rainbow[player] = 1 end end if rainbow[player] == 1 then if g < 250 then g = g + 3 else rainbow[player] = 2 end elseif rainbow[player] == 2 then if b < 255 then if r > 0 then r = r - 3 else r = 0 end b = b + 3 if b > 255 then b = 255 end else rainbow[player] = 3 end elseif rainbow[player] == 3 then if g > 0 then if r > 0 then r = r - 3 else r = 0 end g = g - 3 if g < 0 then g = 0 end else rainbow[player] = 4 end elseif rainbow[player] == 4 then if b > 0 then b = b - 3 if b < 0 then b = 0 end else b = 0 rainbow[player] = 0 end end setVehicleColor(vehicle, r, g, b) ---- line 866 WARNING end end end end addEventHandler("onClientPreRender", getRootElement(), rainbowCar) WARNING: VIP-Silver\client.lua:866: Expected positive value, got negative. This warning may be an error in future versions.
  10. WARNING: SaveCJ\Script.lua:33: Bad argument @ 'split' [Expected string at argument 1, got boolean] WARNING: SaveCJ\Script.lua:34: Bad argument @ 'split' [Expected string at argument 1, got boolean] ERROR: SaveCJ\Script.lua:36: attempt to index local 'textures' (a number value) function setClothes() local account = getPlayerAccount(source) if ( not isGuestAccount(account) ) then local textureString = getAccountData(account, "Clothessaver:Texture") local modelString = getAccountData(account, "Clothessaver:Model") local textures = split (textureString, 44) ---- line 33 local models = split (modelString, 44) ---- line 34 for i=0, 17, 1 do if ( textures[i+1] ~= "," or textures[i+1] ~= nil ) then addPedClothes(source, textures[i+1], models[i+1], i) ---- line 36 end end outputChatBox("Clothes were added by clothessaver", source, 0, 255, 0) textures = {} models = {} end end addEventHandler("onPlayerLogin", getRootElement(), setClothes)
×
×
  • Create New...